UNPKG

darksouls-names

Version:

Get random Dark Souls I, II and III characters names

178 lines (160 loc) 19.6 kB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["darkSoulsNames"] = factory(); else root["darkSoulsNames"] = factory(); })(typeof self !== 'undefined' ? self : this, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _darksoulsNames = __webpack_require__(1); var _darksoulsNames2 = _interopRequireDefault(_darksoulsNames); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var DsNames = function () { function DsNames() { _classCallCheck(this, DsNames); } _createClass(DsNames, [{ key: 'all', /** * Get All data * * @returns Object * @memberof DsNames */ value: function all() { return _darksoulsNames2.default; } /** * Get a random data * * @param {String} version DS version I, II or III * @param {String} category DS category NPCs, Enemies or Bosses * @param {Number} number DS category NPCs, Enemies or Bosses * @memberof DsNames */ }, { key: 'random', value: function random(version, category, number) { if (number === undefined) { return this.__uniqueRandom(_darksoulsNames2.default[version][category]); } else { var randomItems = []; for (var i = 0; i < number; i++) { randomItems.push(this.__uniqueRandom(_darksoulsNames2.default[version][category])); } return randomItems; } } /** * Return a unique random value * * @param {any} arr Value to return * @returns String * @memberof DsNames */ }, { key: '__uniqueRandom', value: function __uniqueRandom(arr) { var rand = this.__rand(0, arr.length - 1); return arr[rand]; } /** * Make a random value * * @param {any} min * @param {any} max * @returns * @memberof DsNames */ }, { key: '__rand', value: function __rand(min, max) { var prev; var num = Math.floor(Math.random() * (max - min + 1) + min); return prev = num === prev && min !== max ? this.__rand() : num; } }]); return DsNames; }(); module.exports = new DsNames(); /***/ }), /* 1 */ /***/ (function(module, exports) { module.exports = {"I":{"NPCs":["Griggs of Vinheim","Blacksmith Rickert of Vinheim","Big Hat Logan","Dusk of Oolacile","Ingward","Laurentius of the Great Swamp","Quelana of Izalith","Eingyi of the Great Swamp","Petrus of Thorolund","Reah of Thorolund","Crestfallen Warrior","Anastacia of Astora","Kingseeker Frampt","Vince of Thorolund","Nico of Thorolund","Solaire of Astora","Undead Merchant (Male)","Undead Merchant (Female)","Andre of Astora","Knight Lautrec of Carim","Oswald of Carim","Alvina of the Darkroot Wood","Shiva of the East","Domhnall of Zena","Quelaan","Siegmeyer of Catarina","Crestfallen Merchant","Ingward","Darkstalker Kaathe","Darkmoon Knightess","Princess Gwynevere","Dark Sun Gwyndolin","Giant Blacksmith","Crossbreed Priscilla","Blacksmith Vamos","Patches the Hyena","Sieglinde of Catarina","Elizabeth","Marvellous Chester","Lord's Blade Ciaran","Hawkeye Gough"],"Enemies":["Hollows","Torch Hollows","Undead Warrior","Undead Assassin","Undead Soldier (Sword)","Undead Soldier (Spear)","Balder Knight","Undead Knight Archer","Engorged Hollow","Undead Crystal Soldier","Undead Crystal Archer","Crystal Knight","Undead Attack Dog","Flaming Attack Dog","Infested Ghoul","Darkwraith Knight","Necromancer","Skeleton","Giant Skeleton (Sword)","Giant Skeleton (Bow)","Skeleton Beast","Wheel Skeleton","Bone Tower","Skeleton Baby","Basilisk","Tree Lizard","Ents","Frog-Ray","Small Mushroom People","Large Mushroom People","Man-Eater Shell","Small Rats","Large Rats","Snow Rat","Drake","Giant Leech","Giant Mosquito","Cragspider","Man Serpent","Serpent Mage","Burrowing Rockworm","Slime","Chaos Bug","Minor Moonlight Butterfly","Great Stone Knight","Giant","Infested Barbarian (Club)","Infested Barbarian (Boulder)","Crystal Golem","Sentinel","Royal Sentinel","Ghost","Phalanx","Wisp","Vile Maggot","Egg Carrier","Banshee","Chaos Eater","Silver Knight","Painting Guardian","Clan of Forest Protectors (Cleric, Sorcerer, Thief, Knights, Bandit)","Pisaca","Pinwheel Servant","Crystal Lizard","Parasitic Wall Hugger","Hollowed Asylum Knight","Black Knight","Blowdart Sniper","Darkmoon Soldiers","Possessed Tree","Great Feline","Mimic","The Channeler","Vagrants"],"Bosses":["Asylum Demon","Bell Gargoyle","Capra Demon","Ceaseless Discharge","Centipede Demon","Chaos Witch Quelaag","Crossbreed Priscilla","Dark Sun Gwyndolin","Demon Firesage","Four Kings","Gaping Dragon","Great Grey Wolf Sif","Gwyn Lord of Cinder","Iron Golem","Moonlight Butterfly","Nito","Ornstein and Smough","Pinwheel","Seath the Scaleless","Stray Demon","Taurus Demon","The Bed of Chaos","Black Hydra","Black Phantom","Butcher","Fang Boar","Giant Cat","Giant Rat","Golden Crystal Golem","Havel The Rock","Hydra","Ricard the Archer","The Berenike Knights","The Black Knight","The Bridge Wyvern","The Channeler","Titanite Demon","Undead Dragon","Artorias the Abysswalker","Black Dragon Kalameet","Manus, Father of the Abyss","Sanctuary Guardian"]},"II":{"NPCs":["Carhillion of the Fold","Straid of Olaphis","Rosabeth of Melfia","Titchy Gren","Licia of Lindelt","Blue Sentinel Targray","Felkin the Outcast","Darkdiver Grandahl","Merchant Hag Melentia","Maughlin the Armourer","Gavlan","Straid of Olaphis","Laddersmith Gilligan","Magerold of Lanafir","Chancellor Wellager","Blacksmith Lenigrast","Steady Hand McDuff","Weaponsmith Ornifex","Straid of Olaphis","Titchy Gren","Blue Sentinel Targray","Crestfallen Saulden","Bell Keeper","Rat King","Magerold of Lanafir","Darkdiver Grandahl"],"Enemies":["Abandoned Hollow (Captive Undead)","Aldia Warlock","Alonne Knight","Alonne Knight Captain","Amana Aberration (Lizard Man)","Amana Priestess (Amana Shrine Maiden)","Archdrake Pilgrim (Lindelt Cleric)","Armorer Dennis","Armored Skeleton","Ashen Crawler [Old Iron King DLC]","Ashen Idol [Old Iron King DLC]","Ashen Warrior [Old Iron King DLC]","Aslatiel of Mirrah","Astrologist [Old Iron King DLC]","Aurous Knight","Basilisk","Banedigger (Mounted Overseer)","Barrel Carrier (Cask Runner)[Old Iron King DLC]","Belfry Gargoyle","Bell Keeper","Bell Keeper Mage","Black Drakeblood Knight (Drakeblood Knight) [Sunken King DLC]","Blue Sentinel (Sentinel Phantom)","Bonewheel Skeleton","Bowman Guthry","Butcher Phantom","Catarina Knight - Roaming Soul","Charred Loyce Knight [Ivory King DLC]","Chariot Lance Executioner (Executioner Phantom)","Corrosive Egg Crawlers (Corrosive Egg Insect) [Sunken King DLC]","Covetous Demon [Ivory King DLC]","Cragslipper (Razorback Nightcrawler)","Crescent Sickle Phantom","Crystal Lizard","Curse Jar","Darkdweller (Dark Stalker)","Darksucker (Coal Tar)","Dark Priestess","Dark Spirit - Forrest Grotesque (Goblin) NG+","Dark Spirit - Abyss Ironclad","Dark Spirit - A Chip Off the Ol' Rock","Dark Spirit - Shadowveil Assassin","Dark Spirit - Pretender to the Xanthous Throne","Dark Spirit - Tenebrous Rogue","Dark Spirit - The Ghost of Princes Past","Dark Spirit - Underworld Deadeye","Desert Sorceress","Dingy Cleric Phantom","Dragon","Dragonfang Villard","Dragon Acolyte","Dragon Knight","Dragonrider","Drakekeeper","Drakekeeper Knight Phantom","Dual Avelyn Bell Keeper","Dual Avelyn Faraam (Lion Knight) [Ivory King DLC]","Ducal Spider (Parasite Spider)","Eleum Loyce Giant (Facsimile Giant) [Ivory King DLC]","Elite Knight [Ivory King DLC]","Entity of Avarice (Mimic) [Ivory King DLC]","Executioner (Torturer)","Exiled Brave","Falconer (Hollow Falconer) NG+","Faraam Knight Phantom","Flame Lizard (Flame Salamander)","Fencer Sharron","Flexile Sentry [Ivory King DLC]","Forrest Grotesque (Goblin)","Foreign Wanderer (Undead Traveler)","Forlorn","Frozen Reindeer (Ice Stallion) [Ivory King DLC]","Fume Sorcerer [Old Iron King DLC]","Gaoler (Undead Jailer)","Grand Tusk (Fanged Beast)","Great Basilisk (Giant Basilisk)","Great Poison Brumer (Giant Acid Horn Beetle)","Giant Warrior (Giant)","Grave Warden","Greatbow Phantom","Greatsword Bell Keeper","Greatsword Phantom","Great Giant Warrior (Elite Giant)","Guardian Dragon","Gyrm Warrior","Gyrm Worker (Grym)","Hammersmith (Undead Steelworker)","Headless Vengarl (Vengarl's Body)","Heide Knight","Hollow Crawler (Undead Supplicant)","Hollow Infantry","Hollow Mage (Black) (Necromancer)","Hollow Mage","Hollow Rogue (Rogue)","Hollow Royal Soldier (Hollow Soldier)","Hollow Peasant (Undead Peasant)","Hollow Priest (Dark Cleric)","Hollow Primal Knight (Primal Knight)","Hollow Prisoner [Ivory King DLC]","Hollow Pyromancer","Hollow Varangian (Varangian Sailor)","Hunting Dog","Hunting Rat (Corpse Rat)","Infantry (Royal Infantry)","Invisible Hollow","Ironclad Soldier","Iron Warrior","Knight Phantom NG+","Leydia Pyromancer","Leydia Witch","Lion Clan Warrior","Looking Glass Varlet (Mirror Squire)","Maldron The Assassin [Ivory King DLC]","Masked Manikin (Manikin)","Melinda the Butcher","Merciless Roenna","Mongrel Rat (Dog Rat)","Nameless Usurper","Nimble Shadow (Suspicious Shadows) NG+","Ogre","Old Ironclad Soldier","Old Knight","Oliver the Collector","Pagan Tree","Painting Guardian Phantom","Parasitized Undead","Peculiar Kindalur","Petrifying Statue Cluster","Poison Brumer (Poison Horn Beetle)","Poison Moth (Great Moth)","Poison Statue Cluster [Sunken King DLC]","Possessed Armor [Old Iron King DLC]","Primal Knight","Prisoned Sinner","Prowler Hound (Kobold)","Prowling Magus","Rampart Golem (Ice Golem) [Ivory King DLC]","Rampart Hedgehog (Ice Rat / Porcupine) [Ivory King DLC]","Rampart Soldier [Ivory King DLC]","Rampart Spearman [Ivory King DLC]","Rampart Stray Dog [Ivory King DLC]","Red Crystal Lizard","Retainer Rogue [Ivory King DLC]","Retainer Sorcerer (Retainer) [Ivory King DLC]","Rhoy the Explorer","Roaming Soul - Foreign Wanderer NG+","Roaming Soul (Forest Guardian)","Rotten Vermin (Corrosive Ant Queen)","Royal Soldier","Royal Swordsman","Ruin Sentinel","Rupturing Hollow (Undead Citizen)","Sanctum Knight [Sunken King DLC]","Sanctum Priestess [Sunken King DLC]","Sanctum Soldier [Sunken King DLC]","Skeleton","Spider Drone (Parasitized Undead)","Stone Knight","Stone Soldier","Stray Hound (Stray Dog)","Swollen Mongrel","Syan Soldier","Syan Soldier - Roaming Soul (Syan Knight) NG+","The Imperfect [Sunken King DLC]","The Pursuer","Tseldoran Settler (Duke Tseldora)","Undead Aberration","Undead Crypt Knight (Imperious Knight)","Undead Devourer (Enslaved Pig)","Undead Huntsman (Artificial Undead)","Undead Laborer","Velstadt, the Royal Aegis","Vorgel the Sinner","Wall Spectre (Wall Warrior)","Wall Watchman","Washing Pole Phantom","Witchtree (Forest Spirit) [Ivory King DLC]","Woodland Child Gully","Woodland Child Victor"],"Bosses":["The Last Giant","The Pursuer","Executioner's Chariot","Looking Glass Knight","The Skeleton Lords","Flexile Sentry","Lost Sinner","Belfry Gargoyles","Ruin Sentinels","Royal Rat Vanguard","Royal Rat Authority","Scorpioness Najka","The Duke's Dear Freja","Mytha, the Baneful Queen","The Rotten","Old Dragonslayer","Covetous Demon","Smelter Demon","Old Iron King","Guardian Dragon","Demon of Song","Velstadt, The Royal Aegis","Vendrick","Darklurker","Dragonrider","Twin Dragonriders","Prowling Magus and Congregation","Giant Lord","Ancient Dragon","Throne Watcher and Throne Defender","Nashandra","Aldia, Scholar of the First Sin","Elana, Squalid Queen","Sinh, the Slumbering Dragon","Afflicted Graverobber, Ancient Soldier Varg, and Cerah the Old Explorer","Smelter Demon","Fume Knight","Sir Alonne","Burnt Ivory King","Aava, the King's Pet","Lud and Zallen, the King's Pets"]},"III":{"NPCs":["Blacksmith Andre","Fire Keeper","Greirat of the Undead Settlement","Hawkwood","Ludleth of Courland","Emma, High Priestess of Lothric Castle","Shrine Handmaid","Siegward of Catarina","Yoel of Londor","Yuria of Londor","Eygon of Carim","Irina of Carim","Cornyx of the Great Swamp","Horace the Hushed","Leonhard","Velka, the Goddess of Sin","Sirris of the Sunless Realms","Orbeck of Vinheim","Unbreakable Patches","Anri of Astora","Rosaria, Mother of Rebirth","Archdeacon McDonnell","Holy Knight Hodrick","Karla","Company Captain Yorshka","Giant of the Undead Settlement","Old Wolf of Farron","Picklepum The Crow","Sister Friede","Sir Vilhelm","Slave Knight Gael","Corvian Settler","Painting Woman","Lapp","Filianore","Stone-humped Hag","Judicator Argo","Shira","Locust Preacher"],"Enemies":["Grave Warden","Starved Hound","Ravenous Crystal Lizard","Crystal Lizard","Knight of the Deep","Hollow Slave","Reanimated Corpse","Infested Corpse","Cathedral Evangelist","Cathedral Grave Warden","Devout of the Deep","Starved Hound","Corpse-grub","Cage Spider","Writhing Rotten Flesh","Man-grub","Giant Slave","Ravenous Crystal Lizard","Deep Accursed","Monstrosity of Sin","Jailer","Sewer Centipede","Mimic","Headless Gargoyle","Silver Knight","Mimic","Cage Spider","Rotten Flesh of Aldrich","Giant Slave","Deep Accursed","Deacon of the Deep","Hollow Soldier","Lothric Knight","Hollow Assassin","Pus of Man","Winged Knight","Starved Hound","Mimic","Darkwraith","Lothric Wyvern","Hollow","Peasant Hollow","Hollow Manservant","Hound-Rat","Large Hound-Rat","Skeleton","Demon","Boreal Outrider Knight","Giant Slave","Cage Spider","Skeleton ","Gravewarden Skeleton","Skeleton Swordsman","Skeleton Wheel","Skeleton Ball","Hound-Rat","Writhing Rotten Flesh","Pus of Man","Rotten Slug","Consumed King's Knight","Serpent-man","Lothric Priest","Pus of Man","Black Knight","Starved Hound","Corvian","Corvian Storyteller","Ravenous Crystal Lizard","Hollow Manservant","Lycanthrope Hunter","Lycanthrope","Black Knight","Lesser Crab","Greater Crab","Corvian","Corvian Storyteller","Sage's Prentice","Sage's Devout","Starved Hound","Poisonhorn Bug","Demon","Giant Avelyn","Carthus Sandworm","Great Crab","Lesser Crab","Smoldering Ghru ","Basilisk","Black Knight","Smoldering Rotten Flesh","Demon Statue","Skeleton Wheel","Carthus Swordsman Skeleton","Hound-Rat","Mimic","Demon Cleric","Knight Slayer Tsorig","Pus of Man","Hollow Soldier","Hollow Assassin","Lothric Knight","Winged Knight","Boreal Outrider Knight","Mimic","Lothric Wyvern","Hollow Soldier","Hollow Assassin","Rotten Slug","Ghru (Conjurator, Mad)","Elder Ghru","Black Knight","Basilisk","Corvian","Corvian Storyteller","Great Crab","Ravenous Crystal Lizard","Darkwraith","Stray Demon","Burning Stake Witch","Irithyllian Slave","Irityllian Soldier Slave","Pontiff Knight","Silver Knight","Sewer Centipede","Corvian","Giant Slave","Sulyvahn's Beast","Irithyllian Beast-hound","Hollow Soldier","Hollow Slave","Lothric Knight","Gertrude's Knight","Boreal Outrider Knight","Crystal Sage","Grand Archives Scholar","Clawed Curse","Man-grub","Gargoyle","Corvian","Corvian Storyteller","Reanimated Corpse","Infested Corpse","Peasant Hollow","Lycanthrope","Monstrosity of Sin","Corpse-grub","Wretch","Sewer Centipede","Large Hound-rat","Mimic","Basilisk","Jailer","Hound-Rat","Giant Slave","Cage Spider","Serpent-man","Serpent-Man Summoner","Drakeblood Knight","Ancient Wyvern","Rock Lizard","Havel Knight","Millwood Knight","Farron Follower","Tree Woman","Greater Crab","Corvian Settler (Enemy)","Corvian Knight","Giant Fly","Wolf","Sewer Centipede","Angel","Murkman","Grotesque Londor Grower","Overgrown Lothric Knight","Lothric Thief"],"Bosses":["Iudex Gundyr","Vordt of the Boreal Valley","Curse-Rotted Greatwood","Crystal Sage","Abyss Watchers","Deacons of the Deep","High Lord Wolnir","Old Demon King","Pontiff Sulyvahn","Yhorm the Giant","Aldrich, Devourer of Gods","Dancer of the Boreal Valley","Dragonslayer Armour","Oceiros, the Consumed King","Champion Gundyr","Lothric, Younger Prince","Ancient Wyvern","Nameless King","Soul of Cinder","Sister Friede","Champion's Gravetender & Gravetender Greatwolf","Demon in Pain & Demon From Below / Demon Prince","Halflight, Spear of the Church","Darkeater Midir","Slave Knight Gael (Boss)"]}} /***/ }) /******/ ]); }); //# sourceMappingURL=index.umd.js.map