Skip to content

Commit

Permalink
Fix first name generation
Browse files Browse the repository at this point in the history
closes #23
  • Loading branch information
ardittristan committed May 9, 2021
1 parent f11190f commit ba0fe74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
19 changes: 5 additions & 14 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,17 @@
"name": "npcgen",
"title": "Not Enough NPCs: A 5e NPC Generator",
"description": "Allows you to generate basic npc characters in foundry.",
"version": "1.0.0",
"version": "1.0.1",
"author": "ardittristan#0001, ui: marcstraube",
"esmodules": [
"npc-gen.js"
],
"esmodules": ["npc-gen.js"],
"socket": true,
"url": "https://github.com/ardittristan/VTTNPCGen",
"manifest": "https://raw.githubusercontent.com/ardittristan/VTTNPCGen/master/module.json",
"download": "https://github.com/ardittristan/VTTNPCGen/releases/latest/download/nenpc.zip",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "0.8.2",
"systems": [
"dnd5e"
],
"styles": [
"css/npcgen.css",
"css/jsoneditor.css",
"css/imagesettings.css",
"css/exportsettings.css"
],
"compatibleCoreVersion": "0.8.3",
"systems": ["dnd5e"],
"styles": ["css/npcgen.css", "css/jsoneditor.css", "css/imagesettings.css", "css/exportsettings.css"],
"languages": [
{
"lang": "en",
Expand Down
2 changes: 1 addition & 1 deletion modules/applications/NPCGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ export default class NPCGenerator extends FormApplication {
});
} else {
if (this.namesJSON.First[this.genGender].All) {
firstNames = firstNames.concat(this.namesJSON.First[this.genGender].all);
firstNames = firstNames.concat(this.namesJSON.First[this.genGender].All);
}
if (this.namesJSON.First[this.genGender][this.genRace]) {
firstNames = firstNames.concat(this.namesJSON.First[this.genGender][this.genRace]);
Expand Down

0 comments on commit ba0fe74

Please sign in to comment.