mirror of
https://github.com/gregory-jagermeister/Fantasy-Content-Generator.git
synced 2026-07-22 07:30:31 +00:00
Fixed issue with names copying incorrectly
This commit is contained in:
parent
601c10d77e
commit
e90ea34898
2 changed files with 4 additions and 5 deletions
|
|
@ -7,5 +7,5 @@
|
|||
"author": "Obsidian",
|
||||
"authorUrl": "https://obsidian.md",
|
||||
"fundingUrl": "https://obsidian.md/pricing",
|
||||
"isDesktopOnly": true
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
|
|
|
|||
7
modal.ts
7
modal.ts
|
|
@ -108,9 +108,6 @@ export class GeneratorModal extends Modal {
|
|||
genSettings.race = raceSelected;
|
||||
settingsdiv.innerHTML = "";
|
||||
settingsdiv.createEl("h3", { text: "Customise The Generation" });
|
||||
let firstName;
|
||||
let familyName = '';
|
||||
let fullName = '';
|
||||
new Setting(settingsdiv)
|
||||
.setName("Male or Female?")
|
||||
.addDropdown((drop) => {
|
||||
|
|
@ -138,7 +135,9 @@ export class GeneratorModal extends Modal {
|
|||
.setCta()
|
||||
.onClick(()=>{
|
||||
for (let index = 0; index < genAmount; index++) {
|
||||
|
||||
let firstName;
|
||||
let familyName = '';
|
||||
let fullName = '';
|
||||
if (pathfinderFilter.includes(genSettings.race)) {
|
||||
fullName = generatePathfinderName(genSettings.race, genSettings.gender, genSettings.multiNames);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue