-
Notifications
You must be signed in to change notification settings - Fork 13
/
fantasy_content_generator.js
69 lines (68 loc) · 67.5 KB
/
fantasy_content_generator.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"SSZJ":[function(require,module,exports) {
var define;
var t;!function(t,n,e){function s(t){var n,e=this,s=(n=4022871197,function(t){t=String(t);for(var e=0;e<t.length;e++){var s=.02519603282416938*(n+=t.charCodeAt(e));s-=n=s>>>0,n=(s*=n)>>>0,n+=4294967296*(s-=n)}return 2.3283064365386963e-10*(n>>>0)});e.next=function(){var t=2091639*e.s0+2.3283064365386963e-10*e.c;return e.s0=e.s1,e.s1=e.s2,e.s2=t-(e.c=0|t)},e.c=1,e.s0=s(" "),e.s1=s(" "),e.s2=s(" "),e.s0-=s(t),e.s0<0&&(e.s0+=1),e.s1-=s(t),e.s1<0&&(e.s1+=1),e.s2-=s(t),e.s2<0&&(e.s2+=1),s=null}function r(t,n){return n.c=t.c,n.s0=t.s0,n.s1=t.s1,n.s2=t.s2,n}function u(t,n){var e=new s(t),u=n&&n.state,o=e.next;return o.int32=function(){return 4294967296*e.next()|0},o.double=function(){return o()+1.1102230246251565e-16*(2097152*o()|0)},o.quick=o,u&&("object"==typeof u&&r(u,e),o.state=function(){return r(e,{})}),o}n&&n.exports?n.exports=u:e&&e.amd?e(function(){return u}):this.alea=u}(0,"object"==typeof module&&module,"function"==typeof t&&t);
},{}],"C6rM":[function(require,module,exports) {
var define;
var t;!function(t,n,e){function r(t){var n=this,e="";n.x=0,n.y=0,n.z=0,n.w=0,n.next=function(){var t=n.x^n.x<<11;return n.x=n.y,n.y=n.z,n.z=n.w,n.w^=n.w>>>19^t^t>>>8},t===(0|t)?n.x=t:e+=t;for(var r=0;r<e.length+64;r++)n.x^=0|e.charCodeAt(r),n.next()}function o(t,n){return n.x=t.x,n.y=t.y,n.z=t.z,n.w=t.w,n}function u(t,n){var e=new r(t),u=n&&n.state,x=function(){return(e.next()>>>0)/4294967296};return x.double=function(){do{var t=((e.next()>>>11)+(e.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},x.int32=e.next,x.quick=x,u&&("object"==typeof u&&o(u,e),x.state=function(){return o(e,{})}),x}n&&n.exports?n.exports=u:e&&e.amd?e(function(){return u}):this.xor128=u}(0,"object"==typeof module&&module,"function"==typeof t&&t);
},{}],"kkTl":[function(require,module,exports) {
var define;
var t;!function(t,n,e){function o(t){var n=this,e="";n.next=function(){var t=n.x^n.x>>>2;return n.x=n.y,n.y=n.z,n.z=n.w,n.w=n.v,(n.d=n.d+362437|0)+(n.v=n.v^n.v<<4^t^t<<1)|0},n.x=0,n.y=0,n.z=0,n.w=0,n.v=0,t===(0|t)?n.x=t:e+=t;for(var o=0;o<e.length+64;o++)n.x^=0|e.charCodeAt(o),o==e.length&&(n.d=n.x<<10^n.x>>>4),n.next()}function r(t,n){return n.x=t.x,n.y=t.y,n.z=t.z,n.w=t.w,n.v=t.v,n.d=t.d,n}function u(t,n){var e=new o(t),u=n&&n.state,x=function(){return(e.next()>>>0)/4294967296};return x.double=function(){do{var t=((e.next()>>>11)+(e.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},x.int32=e.next,x.quick=x,u&&("object"==typeof u&&r(u,e),x.state=function(){return r(e,{})}),x}n&&n.exports?n.exports=u:e&&e.amd?e(function(){return u}):this.xorwow=u}(0,"object"==typeof module&&module,"function"==typeof t&&t);
},{}],"rUyN":[function(require,module,exports) {
var define;
var n;!function(n,t,e){function r(n){var t=this;t.next=function(){var n,e,r=t.x,o=t.i;return n=r[o],e=(n^=n>>>7)^n<<24,e^=(n=r[o+1&7])^n>>>10,e^=(n=r[o+3&7])^n>>>3,e^=(n=r[o+4&7])^n<<7,n=r[o+7&7],e^=(n^=n<<13)^n<<9,r[o]=e,t.i=o+1&7,e},function(n,t){var e,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,e=0;e<t.length;++e)r[7&e]=r[7&e]<<15^t.charCodeAt(e)+r[e+1&7]<<13;for(;r.length<8;)r.push(0);for(e=0;e<8&&0===r[e];++e);for(8==e?r[7]=-1:r[e],n.x=r,n.i=0,e=256;e>0;--e)n.next()}(t,n)}function o(n,t){return t.x=n.x.slice(),t.i=n.i,t}function i(n,t){null==n&&(n=+new Date);var e=new r(n),i=t&&t.state,u=function(){return(e.next()>>>0)/4294967296};return u.double=function(){do{var n=((e.next()>>>11)+(e.next()>>>0)/4294967296)/(1<<21)}while(0===n);return n},u.int32=e.next,u.quick=u,i&&(i.x&&o(i,e),u.state=function(){return o(e,{})}),u}t&&t.exports?t.exports=i:e&&e.amd?e(function(){return i}):this.xorshift7=i}(0,"object"==typeof module&&module,"function"==typeof n&&n);
},{}],"nNkA":[function(require,module,exports) {
var define;
var n;!function(n,t,e){function r(n){var t=this;t.next=function(){var n,e,r=t.w,o=t.X,u=t.i;return t.w=r=r+1640531527|0,e=o[u+34&127],n=o[u=u+1&127],e^=e<<13,n^=n<<17,e^=e>>>15,n^=n>>>12,e=o[u]=e^n,t.i=u,e+(r^r>>>16)|0},function(n,t){var e,r,o,u,i,c=[],f=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,f=Math.max(f,t.length)),o=0,u=-32;u<f;++u)t&&(r^=t.charCodeAt((u+32)%t.length)),0===u&&(i=r),r^=r<<10,r^=r>>>15,r^=r<<4,r^=r>>>13,u>=0&&(i=i+1640531527|0,o=0==(e=c[127&u]^=r+i)?o+1:0);for(o>=128&&(c[127&(t&&t.length||0)]=-1),o=127,u=512;u>0;--u)r=c[o+34&127],e=c[o=o+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,c[o]=r^e;n.w=i,n.X=c,n.i=o}(t,n)}function o(n,t){return t.i=n.i,t.w=n.w,t.X=n.X.slice(),t}function u(n,t){null==n&&(n=+new Date);var e=new r(n),u=t&&t.state,i=function(){return(e.next()>>>0)/4294967296};return i.double=function(){do{var n=((e.next()>>>11)+(e.next()>>>0)/4294967296)/(1<<21)}while(0===n);return n},i.int32=e.next,i.quick=i,u&&(u.X&&o(u,e),i.state=function(){return o(e,{})}),i}t&&t.exports?t.exports=u:e&&e.amd?e(function(){return u}):this.xor4096=u}(0,"object"==typeof module&&module,"function"==typeof n&&n);
},{}],"gMhV":[function(require,module,exports) {
var define;
var t;!function(t,n,e){function o(t){var n=this,e="";n.next=function(){var t=n.b,e=n.c,o=n.d,r=n.a;return t=t<<25^t>>>7^e,e=e-o|0,o=o<<24^o>>>8^r,r=r-t|0,n.b=t=t<<20^t>>>12^e,n.c=e=e-o|0,n.d=o<<16^e>>>16^r,n.a=r-t|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,t===Math.floor(t)?(n.a=t/4294967296|0,n.b=0|t):e+=t;for(var o=0;o<e.length+20;o++)n.b^=0|e.charCodeAt(o),n.next()}function r(t,n){return n.a=t.a,n.b=t.b,n.c=t.c,n.d=t.d,n}function u(t,n){var e=new o(t),u=n&&n.state,c=function(){return(e.next()>>>0)/4294967296};return c.double=function(){do{var t=((e.next()>>>11)+(e.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},c.int32=e.next,c.quick=c,u&&("object"==typeof u&&r(u,e),c.state=function(){return r(e,{})}),c}n&&n.exports?n.exports=u:e&&e.amd?e(function(){return u}):this.tychei=u}(0,"object"==typeof module&&module,"function"==typeof t&&t);
},{}],"rDCW":[function(require,module,exports) {
},{}],"YOzy":[function(require,module,exports) {
var global = arguments[3];
var define;
var n,r=arguments[3];!function(r,t,e){var o,u=256,i=6,a="random",f=e.pow(u,i),c=e.pow(2,52),s=2*c,l=u-1;function p(n,l,p){var m=[],v=d(function n(r,t){var e,o=[],u=typeof r;if(t&&"object"==u)for(e in r)try{o.push(n(r[e],t-1))}catch(i){}return o.length?o:"string"==u?r:r+"\0"}((l=1==l?{entropy:!0}:l||{}).entropy?[n,h(t)]:null==n?function(){try{var n;return o&&(n=o.randomBytes)?n=n(u):(n=new Uint8Array(u),(r.crypto||r.msCrypto).getRandomValues(n)),h(n)}catch(a){var e=r.navigator,i=e&&e.plugins;return[+new Date,r,i,r.screen,h(t)]}}():n,3),m),j=new g(m),S=function(){for(var n=j.g(i),r=f,t=0;n<c;)n=(n+t)*u,r*=u,t=j.g(1);for(;n>=s;)n/=2,r/=2,t>>>=1;return(n+t)/r};return S.int32=function(){return 0|j.g(4)},S.quick=function(){return j.g(4)/4294967296},S.double=S,d(h(j.S),t),(l.pass||p||function(n,r,t,o){return o&&(o.S&&y(o,j),n.state=function(){return y(j,{})}),t?(e[a]=n,r):n})(S,v,"global"in l?l.global:this==e,l.state)}function g(n){var r,t=n.length,e=this,o=0,i=e.i=e.j=0,a=e.S=[];for(t||(n=[t++]);o<u;)a[o]=o++;for(o=0;o<u;o++)a[o]=a[i=l&i+n[o%t]+(r=a[o])],a[i]=r;(e.g=function(n){for(var r,t=0,o=e.i,i=e.j,a=e.S;n--;)r=a[o=l&o+1],t=t*u+a[l&(a[o]=a[i=l&i+r])+(a[i]=r)];return e.i=o,e.j=i,t})(u)}function y(n,r){return r.i=n.i,r.j=n.j,r.S=n.S.slice(),r}function d(n,r){for(var t,e=n+"",o=0;o<e.length;)r[l&o]=l&(t^=19*r[l&o])+e.charCodeAt(o++);return h(r)}function h(n){return String.fromCharCode.apply(0,n)}if(d(e.random(),t),"object"==typeof module&&module.exports){module.exports=p;try{o=require("crypto")}catch(m){}}else"function"==typeof n&&n.amd?n(function(){return p}):e["seed"+a]=p}("undefined"!=typeof self?self:this,[],Math);
},{"crypto":"rDCW"}],"xt2p":[function(require,module,exports) {
var r=require("./lib/alea"),e=require("./lib/xor128"),i=require("./lib/xorwow"),o=require("./lib/xorshift7"),l=require("./lib/xor4096"),x=require("./lib/tychei"),u=require("./seedrandom");u.alea=r,u.xor128=e,u.xorwow=i,u.xorshift7=o,u.xor4096=l,u.tychei=x,module.exports=u;
},{"./lib/alea":"SSZJ","./lib/xor128":"C6rM","./lib/xorwow":"kkTl","./lib/xorshift7":"rUyN","./lib/xor4096":"nNkA","./lib/tychei":"gMhV","./seedrandom":"YOzy"}],"ocGl":[function(require,module,exports) {
"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("seedrandom")),t=Math.random;exports.pick=function(e){return exports.pickMany(e,1)[0]},exports.pickMany=function(e,r){void 0===r&&(r=1);for(var t=Array.from(e),n=[],a=0;a<r;a++){var o=exports.rand(0,t.length-1);n.push(t[o]),t.splice(o,1)}return n},exports.randomRace=function(){},exports.randomGender=function(){return exports.pick(["male","female"])},exports.parseTemplate=function(e,r){void 0===r&&(r={});var t=e.match(/{(.+?)}/gm),n={};return t&&(t.forEach(function(r){var t=/{(.+?)::(.+?)}/gm.exec(r);if(t){var a=t[1];if(null!=n[a]){var o=t[2].split("/")[n[a]];e=e.replace(r,o)}else{var s=t[2].split("/"),p=exports.rand(0,s.length-1);o=s[p];n[a]=p,e=e.replace(r,o)}}}),t.forEach(function(t){if("$"===t.charAt(1)){var n=t.substring(2,t.length-1);e=e.replace(t,r[n])}else{var a=exports.pick(t.substring(1).substring(0,t.length-2).split("/"));e=e.replace(t,a)}})),e},exports.rand=function(e,r){return e=parseInt(e),r=parseInt(r),Math.floor(t()*(r-e+1))+e},exports.forCount=function(e,r){for(var t=0;t<e;t++)r()},exports.titleCase=function(e){return e.replace(/_/g," ").replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},exports.firstCharacterUppercase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},exports.formatRace=function(e){switch(e){case"halfOrc":return"Half-Orc";case"halfElf":return"Half-Elf";default:return exports.titleCase(e)}},exports.generateUUID=function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===r?t:3&t|8).toString(16)})},exports.withSeed=function(e,n){var a=null==exports.FantasyContentGeneratorSeed;exports.FantasyContentGeneratorSeed=e,t=r.default(exports.FantasyContentGeneratorSeed);var o=n();return a&&(exports.FantasyContentGeneratorSeed=null,t=Math.random),o};
},{"seedrandom":"xt2p"}],"tfF3":[function(require,module,exports) {
module.exports={loot_source:["Humanoid (Wild)"],loot_per_loot_source:{"Humanoid (Civilised)":["sack containing {2/3/4} rations","{green/blue/red} glass bottle of {cheap/expensive/luxurious} {Dwarven/Elvish} {alcohol/wine/ale}"],"Humanoid (Wild)":["a {worn/damaged/rough/primitive} {cloth/woollen} bag of bones.","a waterskin {half-filled/fully filled} with {water/stale water/dirty water}.","{rotting/spoiled} meat wrapped in {leaves/parchment/ragged cloth/stained cloth/torn animal hide}.","{damaged/broken} manacles.","a {glass/stone} bottle of strong, harsh alcohol.","a small empty cage made of wood.","{2/3/4} corked glass bottles.","a small jar, holding {5/6/7} fireflies.","a {worn/damaged/rough/primitive} bag full of leaves & stems of an unknown plant.","a dagger. It is stained with {blood/old blood/dirt/something unknown}.","{8/9/10/12/15} arrows tied up with crude string.","a necklace made from {string/pewter chain/silver chain/rough string}.","a necklace made from {string/pewter chain/silver chain/rough string}. There is a pendant attached. The pendant is made from {jade/ebony/glass/lead/iron/copper/bronze}. It depicts the image of {Sirrion/Reorx/Chislev/Zivilyn/Lunitari/Takhisis/Sargonnas/Chemosh/Zeboim/Hiddukel}","a small, {worn/damaged/rough/primitive/weathered/stained} bag of jewellery. Inside is a small collection of rings, necklaces, several earrings and a brooch.","a crude animal cage. Inside there are {2/3} live {rats/mice/bats/squirrels}.","a crude animal cage. Inside there is a live {rat/mouse/bat/squirrel}.","a book. It is badly water damaged, and it's pages cannot be read.","several severed fingers, wrapped in bloody {cloth/fabric}. The fingers appear to be {Dwarven/Elvish/Orcish/Human}.","a small animal skull, floating in a glass jar filled with {salt water/oil}.","the skull of an {Elf/Dwarf/Orc/Gnoll/Tiefling/Human}. It is partially covered in a dark stain.","a small, {stone/wooden} box. It is empty. On the lid, there is a carving of {an eye/a sword/the sun/the moon/a religious symbol}.","a small bag, containing what appears to be a crude {dice game/card game/collection of figurines}. ","a sack of torn up clothing.","a length of rope, measuring {20/30/40}ft in total.","a length of {primitive/badly wound/crusty, stained} rope, measuring {20/30/40}ft in total.","{2/3/4} jars of oil tied together with {rough/fraying} twine. The jars are secured with {bronze/copper/iron} lids.","a collected set of {2/3} ornate, sharpened daggers. They appear to be made from {a hard, black wood/glass/granite}.","a small set of {iron/bronze/copper} rods, instruments. Many of the pieces are {bent out of shape/badly rusted/cracked}. With some cleaning and repair, they could work as a set of Thieves Tools.","a stack of stained, water damaged parchments. Many of the sheets appear to have {Dwarvish/Elvish/Goblin/Draconic/Abyssal} script on them. With care, {15/17/19/20} of the parchments can be salvaged.","a rusty, {copper/iron}, oil lamp. It leaks, and appears to be {Dwarvish/Elvish/Human} made. With some repair, it could be made fully functional.","a badly tarnished crowbar. The flattened end is covered in a dark {red/black} stain.","a silver hand mirror. It is badly {cracked/tarnished}.","{2/3}lbs of salted meat, wrapped in {cloth/parchment}.","a {glass/stone} jar of acid. The jar's lid is badly fitting, and the acid bubbles and froths as it moves. A {skull/symbol of fire/warning written in Dwarvish} is etched onto the side of the jar.","a small, crude chest. It is filled with {apples/partially rotten apples/cooked meats/skulls/empty glass vials}. The chest {has a broken hinge/appears to be badly burnt}.","{3/4} vials of basic Poison in a scuffed leather pouch. ","a bedroll. It is covered in a large, dark stain, but is in otherwise good condition.","a bedroll. It has several gashes down its length, but could be repaired.","{3/4} pots and pans of various sizes, tied together with {crude/rough} rope.","a note written in {Draconic/Abysmal/Ocrish} script. Some deciphering will show that is appears to be list of commands, focusing on {stealing livestock/ransacking a local settlement/attacking travellers for their wares}.","an unholy symbol of {Cyric/Talos/Umberlee}. It is covered in dried blood, and stings when a good creature touches it.","a badly {water damaged/burned/torn} spellbook. Though mostly unintelligible, some deciphering shows the book {belongs/belonged} to a {wizard/witch} specialising in {Conjuration/Divination/Transmutation}.","crude fishing supplies, including a box of maggots, several {rusty/bent} hooks and a {10/12/15}ft length of wire.","a set of clothes, appearing {Dwarvish/Elvish/Human/Halfling} in size and design. They appear {partially burnt/wet and ragged}, and have a large, black stain on the chest.","a corked vial of cloudy, {crimson/charcoal/green/teal} coloured liquid. The vial is wrapped in {cloth/fabric} inside a leather pouch. The leather pouch has a {skull/symbol of Bhaal/symbol of Kelemvor/symbol of Myrkul} etched onto it. Investigation will reveal the liquid to be a dosage of {Assassin’s blood/Crawler mucus/Drow poison/Essence of ether/Malice/Pale tincture/Serpent venom}. ","{2/3} torches, tied together with rope.","a large {stone/bronze/iron} jar with a fastened lid, which is then secured even further with tightly would twine. Inside the jar is a live {tarantula/rat/snake/giant millipede}.","a crudely fashioned hunting trap. It is made of {blackened/gnarled} wood and jagged {iron/steel} {hooks/spikes}. It could be used to trap small creatures, such as boar or deer.","a set of badly maintained scientific instruments, including a compass, measuring rods, quills and ink. With some repair, they could form a Cartographer's toolkit.","the skull of a {Dwarf/Elf/Human/Tiefling/Halfling}. It has been cleaned and bleached white, and has a large, drilled hole in the centre of the crown. {Symbols of Bhaal/Symbols of Cyric/Symbols of Talos/Several Abysmal symbols/Several Draconic symbols} are crudely carved into the temples."],Beast:["broken {fangs/claws/talons}"],Undead:["pieces of rotting flesh","damaged {amour/weapons/ammunition}"]}};
},{}],"Tnpn":[function(require,module,exports) {
"use strict";var e=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("../utils")),o=t(require("./loots.json"));exports.generate=function(e){void 0===e&&(e={});var t=e.source,a=e.seed,n=e.quantity;return a=a||r.FantasyContentGeneratorSeed||r.generateUUID(),n=n||1,r.withSeed(a,function(){t=t||r.pick(o.default.loot_source);var e=r.pickMany(o.default.loot_per_loot_source[t],n).map(function(e){return r.parseTemplate(e)});return{seed:a,source:t,lootItems:e,quantity:n,formattedData:{lootItems:e,quantity:n,label:t+" #"+a.substring(0,8)}}})};var a={generate:exports.generate};exports.default=a;
},{"../utils":"ocGl","./loots.json":"tfF3"}],"XEvT":[function(require,module,exports) {
module.exports={types:["weapon"],power_levels:["minor","lesser","greater","supreme"],schools_of_magic:["abjuration","conjuration","divination","enchantment","evocation","illusion","necromancy","transmutation"],item_effects_per_level:{minor:"{0/0/1}",lesser:"{0/0/1/1}",greater:"{1}",supreme:"{1/1/1/1}"},school_weapon_effects_per_level:{conjuration:{minor:["This weapon has {2/3} charges. While holding this weapon, the wielder can expend a charge to cast {Acid Splash/Poison Spray/Produce Flame} as though they were 1st level. The charges are regained at dawn."],lesser:["This weapon has {2/3/4} charges. While holding this weapon, the wielder can expend a charge to cast {Acid Splash/Poison Spray/Produce Flame} as though they were 5th level. The charges are regained at dawn.","On a successful attack, the target must make a DC 14 CON save. On a failure, the targets mouth and stomach is suddenly filled with monstrous {slugs/worms/beetles/insects/maggots}, and they begin to vomit and cough uncontrollably. The target can take no action other than movement for 1d4 turns.","On a successful attack, magical {vines/tentacles/ropes} erupt from the weapon, wrapping themselves around the limbs and joints of the targets. The target must make a DC 13 DEX save. On a failure, for 2d4 turns the target's max speed is reduced to 10 ft per turn and they have disadvantage on attack rolls."],greater:["This weapon has {3/4} charges. While holding this weapon, the wielder can expend a charge to cast {Acid Splash/Poison Spray/Produce Flame} as though they were 11th level. The charges are regained at dawn.","On a successful attack, the target must make a DC 12 WIS save. On a failure, the target blinks out of existence, and reappears 2d12 feet away. Direction of teleportation is determined by rolling 1d8. If the target reappears inside solid matter, their body replaces the matter. However, the target can become stuck in this manner (for example, reappearing with their leg inside a boulder)."],supreme:["This weapon has 4 charges. While holding this weapon, the wielder can expend a charge to cast {Acid Splash/Poison Spray/Produce Flame} as though they were 17th level. The charges are regained at dawn.","This weapon has 2 charges. The wielder can expend a charge to load the blade with a crackling, screeching heat, and the steel becomes a shade of {maroon/violet}. The wielder can use the weapon to carve into space itself, creating a freestanding portal in the air. This portal acts as if created by the spell Arcane Gate. There can only ever be 2 portals present - if a 3rd is opened, the 1st closes. The charges are regained at dawn.","Once per day, the wielder of this weapon can speak the ancient words and make a sacrifice of blood in order to unleash the weapons power. Lose 2d4 HP, and cast the spell Hunger of Hadar.","This weapon has 1 charge. On a successful attack, the wielder can expend a charge to displace the essence of the target. The target must make a DC 18 WIS save. On a failure, the target is transported to the {Feywild/Shadowfell} plane. The charge is regained at dawn."]},enchantment:{minor:["This weapon has {2/3} charges. While holding this weapon, the wielder can expend a charge to cast Vicious Mockery as though they were 1st level. The charges are regained at dawn."],lesser:["This weapon has {2/3} charges. While holding this weapon, the wielder can expend a charge to cast Vicious Mockery as though they were 5th level. The charges are regained at dawn.","On a successful attack, target must make a DC 14 WIS save. On a failure, their mind is clouded with terrifying visions. They have disadvantage on all attack rolls for {2/3}d4 rounds.","On a successful attack, target must make a DC 14 WIS save. On a failure, their thoughts are swamped with intense emotions of fear, panic and sorrow. They are unable to make hostile or aggressive actions for 1d6 rounds."],greater:["This weapon has {2/3} charges. While holding this weapon, the wielder can expend a charge to cast Vicious Mockery as though they were 11th level. The charges are regained at dawn.","On a successful attack, targets must make a DC 16 WIS save. On a failure, the target becomes Paralyzed for {2/3}d4 rounds.","This weapon has {2/3} charges. On a successful attack, the wielder can expend a charge to swamp the target’s mind with thoughts of jealousy and anger. On the target’s next turn, they must try and attack an ally, to the reasonable best of the target’s ability. The charges are regained at dawn."],supreme:["This weapon has {2/3} charges. While holding this weapon, the wielder can expend a charge to cast Vicious Mockery as though they were 17th level. The charges are regained at dawn.","This weapon has {2/3} charges. On a successful attack, the wielder can expend a charge to cast Confusion at 4th level. The spells point of origin is the target. If allies are inside the sphere, the wielder can choose to make them exempt from the effect. The charges are regained at dawn."]},evocation:{minor:["This weapon has {2/3} charges. The wielder can expend a charge to cast {Eldritch Blast/Fire Bolt/Frostbite} as though they were 1st level. The charges are regained at dawn."],lesser:["This weapon has {2/3} charges. The wielder can expend a charge to cast {Eldritch Blast/Fire Bolt/Frostbite} as though they were 5th level. The charges are regained at dawn.","On a successful attack, embers and flames erupt from the target at the point where the weapon made contact. Target takes an additional {2/3}d4 of Fire damage.","Twice a day, you can thrust the weapon into the ground beneath you, sending out magical shockwaves. This has the effect of casting Thunderwave at 1st level"],greater:["This weapon has {2/3} charges. The wielder can expend a charge to cast {Eldritch Blast/Fire Bolt/Frostbite} as though they were 11th level. The charges are regained at dawn.","The blade of this weapon crackles with {electrical/magical/eldritch} energy. When swung in front of a group of creatures, {X::2/3/4} of the creatures are struck with bolts of energy. Each affected creature takes 3d4 Lightning damage, and becomes Paralyzed for 2 rounds."],supreme:["This weapon has {2/3} charges. The wielder can expend a charge to cast {Eldritch Blast/Fire Bolt/Frostbite} as though they were 17th level. The charges are regained at dawn."]},illusion:{minor:["This weapon has {2/3} charges. The wielder can expend a charge to cast Minor Illusion as though they were 1st level. The charges are regained at dawn."],lesser:["This weapon has {2/3} charges. The wielder can expend a charge to cast Minor Illusion as though they were 5th level. The charges are regained at dawn.","On a successful attack, embers and flames erupt from the target at the point where the weapon made contact. Target takes an additional {2/3}d4 of Fire damage."],greater:["This weapon has {2/3} charges. The wielder can expend a charge to cast Minor Illusion as though they were 11th level. The charges are regained at dawn.","On a successful attack, the target must make a DC 16 WIS save. On a failure, they see lifelike bugs and insects pouring out of the wound inflicted by the attack, and become frightened for 1d8 turns. The source of the fear is the weapon itself."],supreme:["This weapon has {2/3} charges. The wielder can expend a charge to cast Minor Illusion as though they were 17th level. The charges are regained at dawn.","Once a day, the wielder can lightly touch another creature with this weapon. That target creature, along with all of its grear, becomes invisible for {15/30/40/60} minutes."]},necromancy:{minor:["On a successful attack, target must make a DC 12 CON save or take an extra {1d2/1d3} of {Necrotic/Chill} damage. This effect occurs once per day.","On a successful attack, target must make a DC 12 CON save. On a failure, the target's youth is sapped, stiffening their joints and aging their skin. It has has disadvantage on all DEX saves for 1 minute."],lesser:["On a successful attack, target must make a DC 14 CON save or take an extra {1d6/2d4} {Necrotic/Chill} damage. This effect occurs once per day.","On a successful attack, target must make a DC {14/15/16} CON save or gain 1 point of Exhaustion.","On a successful attack, target must make a DC {14/15} CON save or lose {2/1d4} HP, and the attacker gains that much HP.","On a successful attack, {sickly/black/dark} energy strikes all creatures of the wielders choosing in a {20/25/30}ft radius. All targets must make a DC {14/15} CON saving throw. Any failures become Deaf for {2d4} turns."],greater:["On a successful attack, target must make a DC 16 CON save or take an extra {2/3}d{6/8} {Necrotic/Chill} damage. This effect occurs once per day.","On a successful attack, {sickly/black/dark} energy strikes all creatures of the wielders choosing in a {15/20/25}ft radius. All targets must make a DC {15/16} CON saving throw. Any failures become Blind for {2d4} turns.","On a successful attack, {sickly/black/dark} energy {strikes/slams into/seeks out/rushes into} all targets of the wielders choosing in a {20/25/30}ft radius. All targets must make a DC 16 CON saving throw. Any failures take {2/3}d4 Necrotic damage.","While wielding this weapon, the holder can cast Inflict Wounds at base level {2/3} times/day.","This weapon has {3/4} charges. On a successful attack, the wielder can expend a charge to sap the life energy from the target to regain health. The number of Hit Points restored is equal to the damage inflicted by the weapon. The charges are regained at dawn."],supreme:["On a successful attack, target must make a DC 18 CON save or take an extra {3/4}d{10/12} {Necrotic/Chill} damage. This effect occurs once per day.","If a creature is killed with this weapon, they are raised as undead in 1d10 turns. The raised creature acts as if raised by the Create Undead spell cast at base level","This weapon has 1 charge. On a successful attack, the wielder can expend a charge to send oily black roots digging through the targets body into their skull. The target must make a DC 14 CON save. On a failure, they become permanently {Blind/Deaf}.","While wielding this weapon, the holder can cast {Blight/Contagion} at base level {once/twice} per day.","Whenever a creature looks at this weapon, they must make a DC {14/15/16} WIS save. On a failure, the creature becomes Frightened for 2d4 turns. The creature re-try the saving throw after these turns. A success renders the creature immune to the effect for 24 hours"]},transmutation:{minor:["This weapon has {2/3} charges. The wielder can expend a charge to cast Thorn Whip as though they were 1st level. The charges are regained at dawn."],lesser:["This weapon has {2/3} charges. The wielder can expend a charge to cast Thorn Whip as though they were 5th level. The charges are regained at dawn."],greater:["This weapon has {2/3} charges. The wielder can expend a charge to cast Thorn Whip as though they were 11th level. The charges are regained at dawn.","This weapon has {2/3} charges. On a successful attack, the wielder can expend a charge to trigger the effect. The target must make a DC 15 {WIS/CON} save or be transmuted into {wood/stone/rock/clay} for {1/2/3}d4 minutes. While transmuted, the target has the Petrified condition. The charges are regained at dawn."],supreme:["This weapon has {2/3} charges. The wielder can expend a charge to cast Thorn Whip as though they were 17th level. The charges are regained at dawn.","On a successful attack, the target must make a DC 18 WIS check. On a failure, the creature feels stinging, ice cold energy coursing through their veins. The creature becomes Petrified","This weapon has 2 charges. While holding this weapon, the wielder can expend a charge to cast the spell Gaseous Form on themselves or an ally. The charges are regained at dawn."]}},tagline_owned_words:["Bane","Curse","Luck","Hope","Wrath","Pain"],tagline_templates:["{$owner_first_name_possessive} {$tagline_owned_word}"]};
},{}],"wAJf":[function(require,module,exports) {
module.exports={weapon:["Club","Dagger","Greatclub","Handaxe","Javelin","Light Hammer","Mace","Quarterstaff","Sickle","Spear","Battleaxe","Flail","Glaive","Greataxe","Greatsword","Halberd","Lance","Longsword","Maul","Morningstar","Pike","Rapier","Scimitar","Shortsword","Trident","War Pick","Warhammer","Whip"],armour:["Shield","Helmet","Chestplate","Greaves","Gloves","Gauntlet"],commonItem:["Abacus","Barrel","Basket","Bell","Book","Bottle","Bucket","Candle","Chain","Chest","Crowbar","Flask","Hammer","Hourglass","Jug","Ladder","Lamp","Lantern","Lock","Mirror","Pot","Potion","Quiver","Ram","Rope","Shovel","Soap","Spyglass","Torch","Vial","Whetstone"],nounPhysicalAdjectives:["creaky","shiny","spikey","hard","soft","wet","leaky","rusty","sparkling"],coloursAdjective:["red","orange","yellow","green","blue","indigo","violet","purple","pink","beige","brown","grey","black","white","silver","golden"],sizeAdjectives:["big","large","giant","colossal","enormous","huge","small","short","tiny","little"],positiveAdjective:["exceptional","great","high quality","quality","wonderful","delicious","tremendous","exceptional"],animalSingular:["Ape","Badger","Bat","Bear","Bison","Boar","Camel","Cat","Cheetah","Crocodile","Dog","Donkey","Eagle","Elephant","Hawk","Horse","Hyena","Leopard","Lion","Lizard","Monkey","Mule","Octopus","Octopus","Owl","Pony","Pony","Rat","Raven","Rhinoceros","Shark","Snake","Squid","Tiger","Toad","Weasel","Whale","Wolf","Wolverine"]};
},{}],"JHGr":[function(require,module,exports) {
module.exports={dragonborn:{male:["Arjhan","Balasar","Bharash","Donaar","Ghesh","Heskan","Kriv","Medrash","Mehen","Nadarr","Pandjed","Patrin","Rhogar","Shamash","Shedinn","Tarhun","Torinn"],female:["Akra","Biri","Daar","Farideh","Harann","Havilar","Jheri","Kava","Korinn","Mishann","Nala","Perra","Raiann","Sora","Surina","Thava","Uadjit"],last:["Clethtinthiallor","Daardendrian","Delmirev","Drachedandion","Fenkenkabradon","Kepeshkmolik","Kerrhylon","Kimbatuul","Linxakasendalor","Myastan","Nemmonis","Norixius","Ophinshtalajiir","Prexijandilin","Shestendeliath","Turnuroth","Verthisathurgiesh","Yarjerit"],templates:["{$first} {$last}"]},dwarf:{male:["Adrik","Alberich","Baern","Barendd","Brottor","Bruenor","Dain","Darrak","Delg","Eberk","Einkil","Fargrim","Flint","Gardain","Harbek","Kildrak","Morgran","Orsik","Oskar","Rangrim","Rurik","Taklinn","Thoradin","Thorin","Tordek","Traubon","Travok","Ulfgar","Veit","Vondal"],female:["Amber","Artin","Audhild","Bardryn","Dagnal","Diesa","Eldeth","Falkrunn","Finellen","Gunnloda","Gurdis","Helja","Hlin","Kathra","Kristryd","Ilde","Liftrasa","Mardred","Riswynn","Sannl","Torbera","Torgga","Vistra"],last:["Balderk","Battlehammer","Brawnanvil","Dankil","Fireforge","Frostbeard","Gorunn","Holderhek","Ironfist","Loderr","Lutgehr","Rumnaheim","Strakeln","Torunn","Ungart"],templates:["{$first} {$last}"]},elf:{male:["Adran","Aelar","Aramil","Arannis","Aust","Beiro","Berrian","Carric","Enialis","Erdan","Erevan","Galinndan","Hadarai","Heian","Himo","Immeral","Ivellios","Laucian","Mindartis","Paelias","Peren","Quarion","Riardon","Rolen","Soveliss","Thamior","Tharivol","Theren","Varis"],female:["Adrie","Althaea","Anastrianna","Andraste","Antinua","Bethrynna","Birel","Caelynn","Drusilia","Enna","Felosial","Ielenia","Jelenneth","Keyleth","Leshanna","Lia","Meriele","Mialee","Naivara","Quelenna","Quillathe","Sariel","Shanairra","Shava","Silaqui","Theirastra","Thia","Vadania","Valanthe","Xanaphia"],last:["Amakiir","Amastacia","Galanodel","Holimion","Ilphelkiir","Liadon","Meliamne","Naïlo","Siannodel","Xiloscient"],templates:["{$first} {$last}"]},gnome:{male:["Alston","Alvyn","Boddynock","Brocc","Burgell","Dimble","Eldon","Erky","Fonkin","Frug","Gerbo","Gimble","Glim","Jebeddo","Kellen","Namfoodle","Orryn","Roondar","Seebo","Sindri","Warryn","Wrenn","Zook"],female:["Bimpnottin","Breena","Caramip","Carlin","Donella","Duvamil","Ella","Ellyjobell","Ellywick","Lilli","Loopmottin","Lorilla","Mardnab","Nissa","Nyx","Oda","Orla","Roywyn","Shamil","Tana","Waywocket","Zanna"],last:["Beren","Daergel","Folkor","Garrick","Nackle","Nikkle","Murnig","Ningel","Raulnor","Scheppen","Timbers","Turen"],templates:["{$first} {$last}"]},halfElf:{templates:["{$humanFirst} {$humanLast}","{$elfFirst} {$elfLast}","{$humanFirst} {$elfLast}","{$elfFirst} {$humanLast}"]},halfOrc:{male:["Dench","Feng","Gell","Henk","Holg","Imsh","Keth","Krusk","Mhurren","Ront","Shump","Thokk"],female:["Baggi","Emen","Engong","Kansif","Myev","Neega","Ovak","Ownka","Shautha","Sutha","Vola","Volen","Yevelda"],templates:["{$humanFirst} {$humanLast}","{$humanFirst}","{$orcFirst} {$humanLast}","{$orcFirst}"]},halfling:{male:["Alton","Ander","Cade","Corrin","Eldon","Errich","Finnan","Garret","Lindal","Lyle","Merric","Milo","Osborn","Perrin","Reed","Roscoe","Wellby"],female:["Andry","Bree","Callie","Cora","Euphemia","Jillian","Kithri","Lavinia","Lidda","Merla","Nedda","Paela","Portia","Seraphina","Shaena","Trym","Vani","Verna"],last:["Brushgather","Goodbarrel","Greenbottle","High-hill","Hilltopple","Leagallow","Tealeaf","Thorngage","Tosscobble","Underbough"],templates:["{$first} {$last}"]},human:{male:["Aseir","Bardeid","Haseid","Khemed","Mehmen","Sudeiman","Zasheir","Darvin","Dorn","Evendur","Gorstag","Grim","Helm","Malark","Morn","Randal","Stedd","Bor","Fodel","Glar","Grigor","Igan","Ivor","Kosef","Mival","Orel","Pavel","Sergor","Blath","Bran","Frath","Geth","Lander","Luth","Malcer","Stor","Taman","Urth","Aoth","Bareris","Ehput-Ki","Kethoth","Mumed","Ramas","So-Kehur","Thazar-De","Urhur","Borivik","Faurgar","Jandar","Kanithar","Madislak","Ralmevik","Shaumar","Vladislak","An","Chen","Chi","Fai","Jiang","Jun","Lian","Long","Meng","On","Shan","Shui","Wen","Anton","Diero","Marcon","Pieron","Rimardo","Romero","Salazar","Umbero"],female:["Atala","Ceidil","Hama","Jasmal","Meilil","Seipora","Yasheira","Zasheida","Arveene","Esvele","Jhessail","Kerri","Lureene","Miri","Rowan","Shandri","Tessele","Alethra","Kara","Katernin","Mara","Natali","Olma","Tana","Zora","Ander","Amafrey","Betha","Cefrey","Kethra","Mara","Olga","Silifrey","Westra","Arizima","Chathi","Nephis","Nulara","Murithi","Sefris","Thola","Umara","Zolis","Fyevarra","Hulmarra","Immith","Imzel","Navarra","Shevarra","Tammith","Yuldra","Bai","Chao","Jia","Lei","Mei","Qiao","Shui","Tai","Balama","Dona","Faila","Jalana","Luisa","Marta","Quara","Selise","Vonda"],last:["Basha","Dumein","Jassan","Khalid","Mostana","Pashar","Rein","Amblecrown","Buckman","Dundragon","Evenwood","Greycastle","Tallstag","Bersk","Chernin","Dotsk","Kulenov","Marsk","Nemetsk","Shemov","Starag","Brightwood","Helder","Hornraven","Lackman","Stormwind","Windrivver","Ankhalab","Anskuld","Fezim","Hahpet","Nathandem","Sepret","Uuthrakt","Chergoba","Dyernina","Iltazyara","Murnyethara","Stayanoga","Ulmokina","Chien","Huang","Kao","Kung","Lao","Ling","Mei","Pin","Shin","Sum","Tan","Wan","Agosto","Astorio","Calabra","Domine","Falone","Marivaldi","Pisacar","Ramondo"],templates:["{$first} {$last}"]},tiefling:{male:["Akmenos","Amnon","Barakas","Damakos","Ekemon","Lados","Kairon","Leucis","Melech","Mordai","Morthos","Pelaios","Skamos","Therai","Thycius","Urmenos","Damrakas","Erthor","Kylyre","Ralreus","Malerias","Rolthor","Arxikas","Kyichar","Urcis","Ekdos","Zarvir","Malevenom","Kaus","Horrut"],female:["Aranxus","Zhermos","Amrius","Valros","Zerdos","Casira","Zarcis","Kosakas","Dharxus","Guelyre","Arkvir","Aririssa","Seiriseis","Iniza","Natlyvia","Orimaia","Aragrea","Veltari","Afuphis","Yamaia","Dimcria","Zegoria","Yalies","Naxori","Ariaphi"],templates:["{$humanFirst} {$humanLast}","{$humanFirst}","{$tieflingFirst} {$humanLast}","{$tieflingFirst}"]},aelfir:{verb_ing:["Singing","Dancing","Creaking","Leaping","Crying","Choking","Quivering","Whispering","Smiling","Glancing","Stealing","Thirsting","Hungering","Screaming","Pleading","Challenging","Begging","Wanting","Calling","Beckoning","Helping","Believing","Growing","Offering","Leading","Reaching"],verb_present:["Sing","Dance","Creak","Leap","Cry","Choke","Quiver","Whisper","Smile","Glance","Steal","Thirst","Hunger","Scream","Plead","Challenge","Beg","Want","Call","Beckon","Help","Believe","Grow","Offer","Reach"],adverb:["Gracefully","Youthfully","Quietly","Plainly","Deliberately","Forcefully","Accidentally","Begrudgingly","Majestically","Abruptly","Beautifully","Delicately","Delightfully","Firmly","Lightly","Truthfully","Quickly","Wearily","Willfully"],adjective:["{Gold/Silver/Silver-Touched/Ruby/Gem-Wrought/Emerald}","{Broken/Torn/Ruined}","{Ornate/Delicate/Fragile/Tender}","Rhetorical","Pompous","{Plain/Dull}","{Stark/Bold}","{Floral/Flowered}","{Shallow/Superficial}","{Frozen/Cold}","{Bright/Brilliant/Vivid/Iridescent}"],preposition:["To","With","From","On"],preposition_spatial:["Beside","Beneath","Amidst","Between","Toward","Within","Beyond","Amongst"],thing:["{Heart/Mind/Soul/Hand}","{Star/Starlight}","River","Scar","{Mist/Rain}","{Sun/Moon/Earth}","{Sunset/Sunrise}","Moonlight","{Crystal/Diamond/Sapphire}","{Flame/Fire/Ember}","{Orchid/Dandelion/Sunflower/Rose/Tulip}"],passive_emotion:["Arrogance","Hatred","Delight","Cruelty","Joy","Lust","Respect","Love","Hope","Worry","Anger","Sorrow","Ignorance","Pride"],templates:["{$verb_ing}-{$preposition}-{$thing}s","{$thing}-{$preposition}-{$thing2}","{$adverb}-{$verb_ing}-{$thing}","{$adverb}-{$verb_ing}-{$thing}s","{$adjective}-{$thing}-{$verb_ing}","{$passive_emotion}-{$preposition}-{$thing}s","{$adjective}-{$passive_emotion}-{$verb_ing}","{$adjective}-{$adjective2}-{$passive_emotion}","{$adjective}-{$thing}-{$verb_ing}","{$thing}-{$verb_present}-{$verb_ing}","{$thing}-{$verb_present}s-{$adverb}","{$adjective}-{$thing}-{$verb_ing}","{$thing2}-{$thing}-{$verb_ing}","{$thing}s-{$verb_present}-{$adverb}","{$thing}-{$verb_present}s-{$adverb}","{$thing}-{$verb_present}s-{$preposition_spatial}","{$preposition}-{$verb_ing}-{$thing}s","{$preposition_spatial}-{$verb_ing}-{$thing}s"]}};
},{}],"DApb":[function(require,module,exports) {
"use strict";var e=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("../utils")),r=a(require("./names.json")),i=function(e,a){var i=r.default[e].templates;if(!i)throw new Error("could not find race templates for "+e);var l=t.pick(i);switch(e){case"dragonborn":case"dwarf":case"elf":case"gnome":case"halfling":case"human":return t.parseTemplate(l,{first:t.pick(r.default[e][a]),last:t.pick(r.default[e].last)});case"halfOrc":return t.parseTemplate(l,{humanFirst:t.pick(r.default.human[a]),humanLast:t.pick(r.default.human.last),orcFirst:t.pick(r.default.halfOrc[a])});case"halfElf":return t.parseTemplate(l,{humanFirst:t.pick(r.default.human[a]),humanLast:t.pick(r.default.human.last),elfFirst:t.pick(r.default.elf[a]),elfLast:t.pick(r.default.elf.last)});case"tiefling":return t.parseTemplate(l,{humanFirst:t.pick(r.default.human[a]),humanLast:t.pick(r.default.human.last),tieflingFirst:t.pick(r.default.tiefling[a])});case"aelfir":var s=t.pickMany(r.default.aelfir.adjective,2),n=s[0],p=s[1],f=t.pickMany(r.default.aelfir.thing,2),u=f[0],c=f[1],o=t.pickMany(r.default.aelfir.passive_emotion,2),d=o[0],m=o[1];return t.parseTemplate(l,{verb_ing:t.parseTemplate(t.pick(r.default.aelfir.verb_ing)),verb_present:t.parseTemplate(t.pick(r.default.aelfir.verb_present)),adverb:t.parseTemplate(t.pick(r.default.aelfir.adverb)),adjective:t.parseTemplate(n),adjective2:t.parseTemplate(p),preposition:t.parseTemplate(t.pick(r.default.aelfir.preposition)),preposition_spatial:t.parseTemplate(t.pick(r.default.aelfir.preposition_spatial)),passive_emotion:t.parseTemplate(d),passive_emotion2:t.parseTemplate(m),thing:t.parseTemplate(u),thing2:t.parseTemplate(c)})}};exports.generate=function(e){void 0===e&&(e={});var a=e.race,l=e.gender,s=e.seed;return s=s||t.FantasyContentGeneratorSeed||t.generateUUID(),t.withSeed(s,function(){a=a||t.pick(Object.keys(r.default)),l=l||t.randomGender();var e=i(a,l),n=e.split(" "),p=n[0],f=n[1];return{seed:s,name:e,race:a,gender:l,firstName:p,lastName:f,formattedData:{name:e,race:t.formatRace(a),gender:t.titleCase(l),firstName:p?t.titleCase(p):void 0,lastName:f?t.titleCase(f):void 0}}})};var l={generate:exports.generate};Object.keys(r.default).forEach(function(e){l[e]=function(a){return a.race=e,exports.generate(a)}}),exports.default=l;
},{"../utils":"ocGl","./names.json":"JHGr"}],"Oc1C":[function(require,module,exports) {
"use strict";var e=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("../utils")),a=t(require("./magic_items.json")),n=t(require("../genericData.json")),s=t(require("../names")),i=function(){return r.pick(a.default.types)},o=function(){return r.pick(a.default.power_levels)},l=function(e){return"weapon"===e?r.pick(Object.keys(a.default.school_weapon_effects_per_level)):r.pick(a.default.schools_of_magic)},u=function(e,t){var n=r.parseTemplate(a.default.item_effects_per_level[t]);return r.pickMany(a.default.school_weapon_effects_per_level[e][t],parseInt(n)).map(r.parseTemplate)},f=function(e){var t=r.pick(a.default.tagline_templates),n={};if(t.includes("tagline_owned_word")&&(n.tagline_owned_word=r.pick(a.default.tagline_owned_words)),t.includes("owner_first_name_possessive")){var s=e.owner.split(" ")[0];n.owner_first_name_possessive="s"===s.substr(-1)?s+"'":s+"'s"}return r.parseTemplate(t,n)},c=function(e){void 0===e&&(e={});var t=e.seed,a=e.type,c=e.powerLevel,p=e.schoolOfMagic,_=e.effects,d=e.subtype;return t=t||r.FantasyContentGeneratorSeed||r.generateUUID(),r.withSeed(t,function(){a=a||i(),c=c||o(),p=p||l(a),_=_||u(p,c),d=d||r.pick(n.default[a]);var e={};switch(c){case"greater":case"supreme":e.owner=s.default.generate().name,e.tagline=f(e)}return e.title=d+" of "+r.titleCase(c)+" "+r.titleCase(p),{seed:t,type:a,subtype:d,powerLevel:c,schoolOfMagic:p,effects:_,formattedData:e}})},p={generate:c};exports.default=p;
},{"../utils":"ocGl","./magic_items.json":"XEvT","../genericData.json":"wAJf","../names":"DApb"}],"umVb":[function(require,module,exports) {
module.exports={traits:["My eyes are very piercing, and bright {blue/green}.","My voice is {raspy/croaky/harsh} from years of {smoking/drinking}.","My hands are unusually {small/large}.","My feet are very {small/big}.","My eyebrows are very {bushy/thin/wide/short}.","My hair is an unusual colour for my race.","My {left/right} leg is false. I lost it {in battle/hunting the undead/fighting an evil mage/in an accident}.","My clothes are usually {very scruffy/very well kept}.","My sense of balance is terrible - I'm always {tripping over/bumping into things/falling over}.","My sense of {smell/taste/hearing/sight} is {strangely terrible/uncannily brilliant}.","My eyes are an unusual colour for my race.","My nose is very {wide/narrow}.","I lost my {left/right} eye {protecting my family/in a bar brawl/hunting a great beast}.","I have an unusually {big/small} nose.","I have {thick, shaggy/soft, full} hair.","I am unusually {tall/short} for my race.","I am very {slender/stout}.","I have a very {loud/quiet} voice.","I have a {bad/mild} limp in my {left/right} leg from years serving {in the military/as a guard for nobility}.","I have lots of freckles.","I have a nervous twitch in my {legs/hands}.","I talk too much when I get nervous.","I am very {quick/slow} to anger.","I am prone to illness, and always seem to have a {cough/cold/sickness}.","I'm very clumsy.","I am germaphobic.","I am meticulous and precise in all respects.","I am deaf in my {left/right} ear.","I get flashes of pain in my {left arm/right arm/left shoulder/right shoulder} from an old {dagger/arrow/sword} wound there.","I have no sense of humour.","I {never/always} remember a face.","I {never/always} remember a name.","I am scarred on my {chest/back} from an attempt on my life when I was a child.","I have an unusually {deep/high} voice.","I get nervous around members of the opposite sex.","I am known to complain {often/all the time/constantly}.","I am known for my {total lack of/lax sense of/high standards of/over-the-top} personal grooming and hygiene.","I am noticeably {skinny/overweight}.","I am confident and outgoing, thanks to my {natural good looks/natural self-confidence/ability to speak well to others}.","I am noticeably weary of strangers, since {the attack on my friend/the death of a loved one/strong religious beliefs/hidden hatred of other races}.","I have a small tattoo on my {neck/back/shoulder/forearm/knee} relating to {the deity I worship/a friend I lost/a family member I lost/my past I don't want to forget}.","I have a scar on my {left hand/right hand/left leg/right leg/stomach} from {when I was a reckless child/an attempted mugging/a bet gone wrong/an accident at my profession}.","I am deathly afraid of {spiders/snakes/insects/worms}.","I get {too cold/too hot} very easily.","I {X::love/hate} {confrontation/competition}, and {X::will often provoke people for fun/will do almost anything to get out of a fight or argument}.","I have a crooked nose. It was broken when {I was a child, getting into fights/I was attacked in the street/I had an accident}.","I am {slightly/very/extremely} unfit, and am often {out of breath/struggling with muscle cramp/dizzy and lightheaded}.","I am overly {stern/strict/hard on people}.","I am {very/extremely/somewhat/really} excitable, and often get myself in trouble with my {relentless/boundless/endless} enthusiasm.","I slouch {when I walk/when I sit/at all times}.","I crack my knuckles {all the time/when I'm nervous}.","I have a {mild/slight/bad/severe} lisp.","I am {very/extremely} impatient.","I {crack my knuckles/click my tongue/fidget/itch my face} when I'm nervous.","I am blind in my {right/left} eye.","I lost my {right/left} {arm/leg} in an accident.","I get bored and distracted very easily.","I have a very short temper.","I am very bossy."],desires:["I want revenge against my {X::brother/sister} for murdering our {mother/father} for {X::his/her} own financial gain.","All I desire is a home to live in and a family to care for.","I want justice for the crimes committed against my {clan/tribe/family/friends}.","I want clear my name of false wrongdoings - I didn't {murder the noble/steal the treasure/attack the guards/attack my friend}!","All I want is enough money to pay off my debts.","I want to prove myself, and escape the shadow of my {brother/sister/brothers/sisters/siblings}.","I want to prove myself in combat, so I'm going to {win a tournament/beat the local champion/join an adventuring party}.","I want to go on adventures, because {it's what my father did/it's what my mother did/I'm bored of my mundane profession}.","I want to study magic and become a grand wizard.","I want to find an ancient {sword/shield/suit of armour/gem/cloak/ring} that I was told of as a child.","I want to discover more about my ancestors.","I want to find my lost {brother/sister}.","I want to open my own {inn/blacksmiths/armoury/tavern/stable}.","I want to escape my past as a {thief/criminal/burglar/gang member}.","I want to save my friends from {slavery/prison}.","I want to prove myself to the person I love, by {winning a race/beating a rival in combat/convincing their family I am worthy}.","I want to provide for my family, but I cannot find work. Therefore, I'm planning to {rob a wealthy merchant/steal an aristocrats jewellery}.","I want to escape the bonds of my secret enslavement to a {warlock/witch/demon/Shadowfell being}.","I want to master a musical instrument.","I want to be taken more seriously by the guild of my profession...even if it means playing dirty.","I want to become a Cleric, so I can {heal the sick, like my family before me/heal my dying family member}.","I want to be free of my nagging spouse...whatever it takes.","I want to get my own back on my superior at work, who humiliates and belittles me about my {physical appearance/race/family/tribe/clan}.","I want to disappear from the law - I'm on the run for a crime I {didn't commit/did commit}.","I want to become a master of the {sword/axe/dagger} - my dream is to become a {knight/great warrior/hunter}.","I want to be free of my Warlock Patron.","I want to murder the {duke/mayor/baron} for burning down my village.","I want to travel and see the world, but I can't because {of my commitment to my family/I'm being drafted into the military/I'm scared of danger/I'm too weak}.","I want to find true love.","I want to prove to my family that I can be strong and independent.","I want to see my {brother/sister} succeed.","I want to find my {father/brother} - he left when I was a child to be a {monk/cleric/priest/missionary} and I don't know where he is.","I want to prove myself a great hunter, and claim the head of the local monster that's been {eating livestock/abducting farmers/murdering children/razing buildings}.","I want to seek mentor ship to control my latent Sorcerous powers.",'I want to find my {sister/mother} - she left a letter saying she had to {"settle an old score"/"do one last job"/"make things right"} and I haven\'t seen her since.',"I just want to run away from all of my responsibilities."]};
},{}],"fnAi":[function(require,module,exports) {
"use strict";var e=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("../utils")),r=a(require("../names")),s=a(require("../names/names.json")),n=a(require("./npcs.json")),i=["mother","father","son","daughter","brother","sister"],l=function(e){void 0===e&&(e={});var a=e.seed,i=e.race,l=e.gender,o=e.shouldGenerateRelations,m=void 0===o||o;return a=a||t.FantasyContentGeneratorSeed||t.generateUUID(),t.withSeed(a,function(){i=i||t.pick(Object.keys(s.default)),l=l||t.randomGender();var e=r.default.generate({race:i,gender:l}),o=t.pickMany(n.default.traits,2).map(t.parseTemplate),d=t.pickMany(n.default.desires,1).map(t.parseTemplate),u=[];return m&&(u=c({originalNpcNameObject:e,race:i,desires:d,seed:a})),{seed:a,nameObject:e,gender:l,race:i,traits:o,desires:d,formattedData:{name:e.name,firstName:e.firstName,lastName:e.lastName,gender:t.titleCase(l),race:t.formatRace(i),traits:o,desires:d,relations:u},relations:u}})},c=function(e){var a=e.originalNpcNameObject,t=e.race,r=e.desires,s=e.seed;return o(r).map(function(e){switch(e){case"father":case"mother":case"brother":case"sister":case"son":case"daughter":return{relationTitle:e,npc:m({originalNpcNameObject:a,race:t,relationTitle:e,seed:e+"-"+s})}}})},o=function(e){var a=e.join(":");return i.filter(function(e){return a.includes(" "+e)})},m=function(e){var a=e.originalNpcNameObject,t=e.race,r=e.relationTitle,s=e.seed,n=null;switch(r){case"father":case"brother":case"son":n="male";break;case"mother":case"sister":case"daughter":n="female"}var i=l({race:t,gender:n,shouldGenerateRelations:!1,seed:s});return null!=a.formattedData.lastName&&null!=i.formattedData.lastName&&(i.nameObject.name=i.nameObject.name.replace(i.formattedData.lastName,a.formattedData.lastName),i.nameObject.lastName=a.lastName,i.formattedData.name=i.formattedData.name.replace(i.formattedData.lastName,a.formattedData.lastName),i.formattedData.lastName=a.lastName),i},d=function(){return t.parseTemplate(t.pick(n.default.traits))},u=function(){return t.parseTemplate(t.pick(n.default.desires))},f={generate:l,trait:d,desire:u};exports.default=f;
},{"../utils":"ocGl","../names":"DApb","../names/names.json":"JHGr","./npcs.json":"umVb"}],"B806":[function(require,module,exports) {
module.exports={types:{thorp:{minPop:5,maxPop:20,natural_landmark_count:"0-1",establishments:1},hamlet:{minPop:20,maxPop:80,natural_landmark_count:"0-1",establishments:1},village:{minPop:80,maxPop:400,natural_landmark_count:"0-1",establishments:1},small_town:{minPop:400,maxPop:900,natural_landmark_count:"0-2",establishments:1},medium_town:{minPop:900,maxPop:2e3,natural_landmark_count:"0-2",establishments:1},large_town:{minPop:2e3,maxPop:5e3,natural_landmark_count:"0-3",establishments:1},small_city:{minPop:5e3,maxPop:1e4,natural_landmark_count:"0-4",establishments:1},medium_city:{minPop:1e4,maxPop:2e4,natural_landmark_count:"0-4",establishments:1},large_city:{minPop:2e4,maxPop:5e4,natural_landmark_count:"1-4",establishments:1},great_city:{minPop:5e4,maxPop:1e5,natural_landmark_count:"2-5",establishments:1},metropolis:{minPop:1e5,maxPop:-10050,natural_landmark_count:"3-6",establishments:1}}};
},{}],"mmEX":[function(require,module,exports) {
module.exports={establishments:["general_store","stable","inn","tavern","armoursmith","weaponsmith","leatherworker","tanner","bakery"],establishmentVocationsRequired:["owner","manager"],establishmentVocationsOptional:["assistant","apprentice"],establishmentVocationsOptionalPerType:{general_store:["cleaner"],stable:["stable hand","farrier"],inn:["landlord","bar tender","glass collector"],tavern:["landlord","bar tender","glass collector"]},establishmentSecrets:["Built on an ancient {Dwarven/Elven/Dragonborn/Orcish} burial ground.","Built with money stolen from {a local religious institution/a local government}.","No one knows where the owner came from.","There are secret {chambers/tunnels/caverns} under the foundations.","The walls are hollow, for unknown reasons.","Runes of unknown origin are carved into several pieces of furniture.","A {magical/mysterious/terrifying} portal to the {Infernal Plane/6th Plane of the Abyss/7th Hell} exists in a {hollow space/cave/cavern} below the foundations.","This establishment is harbouring a {war/political} refugee in the {attic/loft/basement/cellar}.","This establishment is harbouring a criminal, as the criminal showed kindness to the owner.","{Some/Many/All} of the regular patrons are {mimics/lycanthropes/vampires}.","The owner is {selling/peddling} illegal {magical ingredients/potions/magical scrolls} to their patrons.","The owner never ages. Patrons who come to learn this keep their mouths shut, as they get discounted prices in return.","The owner is secretly a {werewolf/demon/mimic/doppelganger} who just wants a quiet life."],establishmentNameSetA:["The {$anyItem}","The {$nounPhysicalAdjective} {$anyItem}","The {$sizeAdjective} {$anyItem}","The {$colourAdjective} {$anyItem}","The {$nounPhysicalAdjective} {$animal}","The {$sizeAdjective} {$animal}","The {$colourAdjective} {$animal}","{$ownersLastName}'s {$positiveAdjective} {Market/Emporium/Bazaar/Outlet/Store/Boutique}","{$ownersLastName}'s","{$lastNameA} & {$lastNameB}'s"],establishmentGeneralLookAndAppearances:["is spacious, with a tall ceiling.","is big, with wide rooms and tall walls.","is cramped, with a low ceiling.","is small, nestled in between 2 larger buildings.","is open and bright, with large windows and a high ceiling.",'looks old and {worn/"well used"}.','looks "well used", but carefully maintained.',"is exceptionally clean and tidy.",'is very messy, but not particularly "dirty".',"is grotty, and gives off a shady atmosphere.","looks brand new, with little obvious wear and tear."],establishmentBuiltFrom:["It is {built/constructed} from {oak/spruce/stone blocks/stone bricks/rough stone blocks/hewn stone blocks/clay bricks} with a {shallow/tall/wide} {slate/thatched/shingle tiled} roof, and the floor is made of {flagstones/old flagstones/wooden floorboards/sturdy wooden floorboards/cobblestones/worn, chipped bricks}."],establishmentEnteringAndPatrons:{i:["As you {step into/walk into/enter} the building,","As you {step/walk/enter} through the door,","As you set foot on the threshold","{Entering/Stepping into} the building,"],ii:["you see there are {some/several/one or two/a few} other patrons present. They {look at/regard/eye/notice} you briefly before ignoring you.","{some/several/one or two/a few} of the patrons {look at/regard/eye/spot check/scan} you {cautiously/suspiciously/curiously}, before {turning away/turning back to their business/ignoring you/going about their business}."]},establishmentDescriptionsInn:["the {floor/bar} is sticky, and covered in stains","most of the furniture seems {very battered, like it's seen better days/quite new, and in good condition}","a huge {sword/axe/breastplate/shield} hangs on a wooden plate above the bar","a huge, roaring fire is situated on the far wall","the smell of {various/strong} {ales/ciders/wines/spirits} wafts across the room, coming from the {basement/cellar/back door}","{large/small} {ornate/delicate/sturdy looking} lanterns adorn most of the {walls/pillars/walls and pillars}","the windows are covered with simple wooden shutters"],establishmentDescriptionsGeneralStore:["all manner of items are scattered across the counter","there are overflowing {boxes/chests/barrels} in all corners of the room - each labelled with {Dwarven runes/Elven script/an unknown language}","the sounds of animals {squarking/barking/meowing} can be heard coming from the store room","a small {copper/iron/bronze} bell above the door {chimes/rings/sounds} when the door opens and closes","posters of various {foods/vegetables} and {items/farming equipment} are nailed to the walls, with faded prices in large, bold letters","a {sweeping brush is/mop and bucket are} leaning against the {counter/far wall}"],establishmentDescriptionsArmoursmith:["you {notice/eye} a large {iron/steel/bronze} anvil in the {nearest/far} corner","a selection of {tools/hammers} are hanging from a rack near the furnace","you realise there is a {thick/thin} coating of {dust/soot/coal dust} coats everything","a roaring furnace is situated in the centre of the room","a large {family crest/religious symbol/military insignia}, made of wrought iron, hangs on the {north/west/east/south} wall"],establishmentDescriptionsStable:["horses","more horses"],establishmentDescriptionsDefault:["a {barking/meowing/squarking} noise can be heard from a back room somewhere","a large chandelier hangs in the centre of the room"]};
},{}],"Rxgn":[function(require,module,exports) {
"use strict";var e=this&&this.__spreadArrays||function(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var r=Array(e),n=0;for(t=0;t<a;t++)for(var i=arguments[t],s=0,c=i.length;s<c;s++,n++)r[n]=i[s];return r},t=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var r=t(require("../utils")),n=a(require("./establishments.json")),i=a(require("../genericData.json")),s=a(require("../npcs")),c=function(){return r.parseTemplate(r.pick(n.default.establishmentSecrets))},o=function(e){return e.map(function(e){return e.formattedData.lastName?e.formattedData.lastName:e.formattedData.firstName})},l=function(t,a){switch(t){case"general_store":case"inn":case"tavern":case"armorsmith":case"weaponsmith":case"stable":case"carpenter":case"leatherworker":case"tanner":case"cobbler":default:return function(t){var a=r.pickMany(o(t),2),s=e(i.default.weapon,i.default.armour,i.default.commonItem);return r.parseTemplate(r.pick(n.default.establishmentNameSetA),{anyItem:r.pick(s),animal:r.pick(i.default.animalSingular),sizeAdjective:r.pick(i.default.sizeAdjectives),colourAdjective:r.pick(i.default.coloursAdjective),nounPhysicalAdjective:r.pick(i.default.nounPhysicalAdjectives),positiveAdjective:r.pick(i.default.positiveAdjective),ownersLastName:a[0],lastNameA:a[0],lastNameB:a[1]})}(a)}},u=function(t,a){var i=e(n.default.establishmentVocationsOptional,n.default.establishmentVocationsOptionalPerType[a]||[]);return e([r.pick(n.default.establishmentVocationsRequired)],r.pickMany(i,r.rand(1,2))).map(function(e,a){var n=s.default.generate({seed:""+t+e+a});return n.vocation=e,n.formattedData.vocation=r.titleCase(e),n})},p=function(){return r.pick(n.default.establishments)},d=function(e){var t="This establishment "+r.pick(n.default.establishmentGeneralLookAndAppearances),a=r.pick(n.default.establishmentBuiltFrom),i=r.pick(n.default.establishmentEnteringAndPatrons.i)+" "+r.pick(n.default.establishmentEnteringAndPatrons.ii),s=[];switch(e){case"inn":case"tavern":s=r.pickMany(n.default.establishmentDescriptionsInn,2);break;case"armoursmith":case"weaponsmith":s=r.pickMany(n.default.establishmentDescriptionsArmoursmith,2);break;default:s=r.pickMany(n.default.establishmentDescriptionsDefault,2)}var c=s[0]+", and "+s[1]+".";return r.parseTemplate(t+" "+a+" "+i+" "+r.firstCharacterUppercase(c))};exports.generate=function(e){void 0===e&&(e={});var t=e.type,a=e.seed;return a=a||r.FantasyContentGeneratorSeed||r.generateUUID(),r.withSeed(a,function(){t=t||p();var e=u(a,t),n=l(t,e),i=c(),s=d(t);return{seed:a,name:n,type:t,secret:i,npcs:e,description:s,formattedData:{name:r.titleCase(n),type:r.titleCase(t),secret:i,npcs:e,description:s}}})};var f={generate:exports.generate};exports.default=f;
},{"../utils":"ocGl","./establishments.json":"mmEX","../genericData.json":"wAJf","../npcs":"fnAi"}],"nNI1":[function(require,module,exports) {
"use strict";var e=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("../utils")),n=t(require("./settlements.json")),a=t(require("../establishments")),s=function(){return r.pick(Object.keys(n.default.types))},u=function(e){return r.rand(n.default.types[e].minPop,n.default.types[e].maxPop).toLocaleString()};exports.generate=function(e){void 0===e&&(e={});var t=e.type,n=e.seed;return n=n||r.FantasyContentGeneratorSeed||r.generateUUID(),r.withSeed(n,function(){return t=t||s(),{seed:n,type:t,population:u(t),establishments:[a.default.generate({seed:n+"-1"}),a.default.generate({seed:n+"-2"}),a.default.generate({seed:n+"-3"})]}})};var i={generate:exports.generate};exports.default=i;
},{"../utils":"ocGl","./settlements.json":"B806","../establishments":"Rxgn"}],"fhf2":[function(require,module,exports) {
"use strict";var A;Object.defineProperty(exports,"__esModule",{value:!0}),function(A){A.NPC_ACTS="NPC_ACTS",A.PC_RELATED="PC_RELATED",A.LOCATION_BASED_URBAN="LOCATION_BASED_URBAN",A.LOCATION_BASED_WILDERNESS="LOCATION_BASED_WILDERNESS"}(A=exports.eStoryhookBanks||(exports.eStoryhookBanks={}));
},{}],"NQ64":[function(require,module,exports) {
module.exports=["An NPC takes a {disliking/liking} to {a PC/another NPC}","An NPC is caught palming a weapon by the PCs","An NPC shuffles nervously and suspiciously","An NPC becomes {fearful/angry/scared/terrified}","An NPC {insults/threatens} {a PC/another NPC}"];
},{}],"MElk":[function(require,module,exports) {
module.exports=["A PC notices a shadowy figure","A {brawl/fight} breaks out in a nearby tavern","A {hostile/agressive/mysterious} faction the PCs know have developed a prescence in this town"];
},{}],"h2Q5":[function(require,module,exports) {
module.exports=["A PC notices a a huge plume of smoke to the {North/South/East/West}"];
},{}],"zKdw":[function(require,module,exports) {
"use strict";var e=this&&this.__assign||function(){return(e=Object.assign||function(e){for(var o,t=1,r=arguments.length;t<r;t++)for(var n in o=arguments[t])Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);return e}).apply(this,arguments)},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o.default=e,o},t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var r=o(require("../utils")),n=require("../interfaces"),a=t(require("./npc_acts.json")),s=t(require("./pc_related.json")),i=t(require("./location_based_urban.json")),u=t(require("./location_based_wilderness.json")),c=function(e){void 0===e&&(e={});var o,t=e.seed,c=e.storyhookBank;switch(t=t||r.FantasyContentGeneratorSeed||r.generateUUID(),c=c||r.pick(Object.values(n.eStoryhookBanks))){case n.eStoryhookBanks.NPC_ACTS:o=a.default;break;case n.eStoryhookBanks.PC_RELATED:o=s.default;break;case n.eStoryhookBanks.LOCATION_BASED_URBAN:o=i.default;break;case n.eStoryhookBanks.LOCATION_BASED_WILDERNESS:o=u.default}return r.withSeed(t,function(){return{seed:t,storyhook:r.parseTemplate(r.pick(o)),storyhookBank:c}})},k=function(o){return void 0===o&&(o={}),c(e(e({},o),{storyhookBank:n.eStoryhookBanks.NPC_ACTS}))},l=function(o){return void 0===o&&(o={}),c(e(e({},o),{storyhookBank:n.eStoryhookBanks.PC_RELATED}))},_=function(o){return void 0===o&&(o={}),c(e(e({},o),{storyhookBank:n.eStoryhookBanks.LOCATION_BASED_URBAN}))},d=function(o){return void 0===o&&(o={}),c(e(e({},o),{storyhookBank:n.eStoryhookBanks.LOCATION_BASED_WILDERNESS}))},h={generate:c,npcActs:k,pcRelated:l,locationBasedUrban:_,locationBasedWilderness:d};exports.default=h;
},{"../utils":"ocGl","../interfaces":"fhf2","./npc_acts.json":"NQ64","./pc_related.json":"NQ64","./location_based_urban.json":"MElk","./location_based_wilderness.json":"h2Q5"}],"fUdq":[function(require,module,exports) {
"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("./loots"));exports.Loots=t.default;var r=e(require("./magic_items"));exports.MagicItems=r.default;var s=e(require("./names"));exports.Names=s.default;var a=e(require("./npcs"));exports.NPCs=a.default;var o=e(require("./settlements"));exports.Settlements=o.default;var u=e(require("./establishments"));exports.Establishments=u.default;var i=e(require("./storyhooks"));exports.Storyhooks=i.default;
},{"./loots":"Tnpn","./magic_items":"Oc1C","./names":"DApb","./npcs":"fnAi","./settlements":"nNI1","./establishments":"Rxgn","./storyhooks":"zKdw"}],"Ro7N":[function(require,module,exports) {
window.FantasyContentGenerator=require("../src/index");
},{"../src/index":"fUdq"}]},{},["Ro7N"], null)