From 82788420e3b955b0ce5d12d3c3a34d28442c7d16 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Fri, 27 Nov 2020 21:29:38 -0500 Subject: [PATCH] remove underscores --- src/events/intro/introSummary.js | 285 ++++++++++++++++--------------- 1 file changed, 143 insertions(+), 142 deletions(-) diff --git a/src/events/intro/introSummary.js b/src/events/intro/introSummary.js index 73a86a0c359..46dfe17b96b 100644 --- a/src/events/intro/introSummary.js +++ b/src/events/intro/introSummary.js @@ -305,11 +305,11 @@ App.Intro.summary = function() { const el = new DocumentFragment(); App.UI.DOM.appendNewElement("h2", el, "Economy"); - let _options = new App.UI.OptionsGroup(); - let _option; + let options = new App.UI.OptionsGroup(); + let option; V.localEcon = V.economy; - _options.addOption("Economic climate", "baseDifficulty") + options.addOption("Economic climate", "baseDifficulty") .addValue("Very Easy", 1, () => V.economy = 200) .addValue("Easy", 2, () => V.economy = 125) .addValue("Default Difficulty", 3, () => V.economy = 100) @@ -322,7 +322,7 @@ App.Intro.summary = function() { if (V.difficultySwitch === 0) { V.econRate = 0; } - _options.addOption("Economic forecast", "econRate").addComment("Some economic content requires this to be set to harder than vanilla") + options.addOption("Economic forecast", "econRate").addComment("Some economic content requires this to be set to harder than vanilla") .addValue("Vanilla", 0, () => V.difficultySwitch = 0) .addValue("Easy", 1, () => V.difficultySwitch = 1) .addValue("Default", 2, () => V.difficultySwitch = 1) @@ -349,55 +349,52 @@ App.Intro.summary = function() { V.surgeryCost = Math.trunc(30000 / V.economy); if (!V.customVariety) { - _options.addOption("You are using standardized slave trading channels.") + options.addOption("You are using standardized slave trading channels.") .customButton("Customize the slave trade", () => { V.customVariety = 1; V.customWA = 0; }, "Customize Slave Trade"); - _options.addOption("", "internationalTrade") + options.addOption("", "internationalTrade") .addValue("Allow intercontinental trade", 1).on().customDescription("The slave trade is <strong>international,</strong> so a wider variety of slaves will be available.") .addValue("Restrict the trade to continental", 0).off().customDescription("The slave trade is <strong>continental,</strong> so a narrower variety of slaves will be available."); if (V.internationalTrade === 1) { - _options.addOption("International slave variety is", "internationalVariety") + options.addOption("International slave variety is", "internationalVariety") .addValue("Normalized national variety", 1).customDescription("<strong>normalized,</strong> so small nations will appear nearly as much as large ones.") .addValue("Semi-realistic national variety", 0).customDescription("<strong>semi-realistic,</strong> so more populous nations will be more common."); } } else { - _options.addOption("Nationality distributions are customized.") + options.addOption("Nationality distributions are customized.") .customButton("Adjust the slave trade", () => { V.customWA = 0; V.customVariety = 1; }, "Customize Slave Trade") .customButton("Stop customizing", () => { delete V.customVariety; }); - - } /* closes V.customVariety is defined */ - el.append(_options.render()); + el.append(options.render()); if (V.customVariety) { - // TODO: can we really simplify like this? el.append(App.UI.nationalitiesDisplay()); } - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); - _options.addOption("", "plot") + options.addOption("", "plot") .addValue("Enable non-erotic events", 1).on().customDescription("Game mode: <strong>two-handed</strong>. Includes non-erotic events concerning the changing world.") .addValue("Disable non-erotic events", 0).off().customDescription("Game mode: <strong>one-handed</strong>. No non-erotic events concerning the changing world."); - el.append(_options.render()); + el.append(options.render()); App.UI.DOM.appendNewElement("h2", el, "The Free City"); - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); - _options.addOption(`The Free City features <strong>${V.neighboringArcologies}</strong> arcologies in addition to your own.`, "neighboringArcologies") + options.addOption(`The Free City features <strong>${V.neighboringArcologies}</strong> arcologies in addition to your own.`, "neighboringArcologies") .showTextBox().addComment("Setting this to 0 will disable most content involving the rest of the Free City."); if (V.targetArcology.fs === "New") { - _options.addOption(`The Free City is located on <strong>${V.terrain}</strong> terrain.`, "terrain") + options.addOption(`The Free City is located on <strong>${V.terrain}</strong> terrain.`, "terrain") .addValueList([["Urban", "urban"], ["Rural", "rural"], ["Ravine", "ravine"], ["Marine", "marine"], ["Oceanic", "oceanic"]]); if (V.terrain !== "oceanic") { // TODO: this is from original, but seems unused? - _option = _options.addOption(`The Free City is located in <strong>${V.continent}</strong>.`, "continent") + option = options.addOption(`The Free City is located in <strong>${V.continent}</strong>.`, "continent") .addValue("North America").addCallback(() => V.language = "English") .addValue("South America").addCallback(() => V.language = "Spanish") .addValue("Brazil").addCallback(() => V.language = "Portuguese") @@ -413,22 +410,22 @@ App.Intro.summary = function() { .addValue("Japan").addCallback(() => V.language = "Japanese"); } - _options.addOption("The lingua franca of your arcology is", "language") + options.addOption("The lingua franca of your arcology is", "language") .showTextBox(); } else if (!["ArabianRevivalist", "AztecRevivalist", "ChineseRevivalist", "EdoRevivalist", "EgyptianRevivalist", "RomanRevivalist"].includes(V.targetArcology.fs)) { - _options.addOption("The lingua franca of your arcology is", "language") + options.addOption("The lingua franca of your arcology is", "language") .addValueList(["English", "Spanish", "Arabic"]).showTextBox(); } - _options.addOption(`The Free City could develop as many as <strong>${V.FSCreditCount}</strong> future societies.`, "FSCreditCount") + options.addOption(`The Free City could develop as many as <strong>${V.FSCreditCount}</strong> future societies.`, "FSCreditCount") .showTextBox().addComment("5 is default, 4 behaves the same as pre-patch 0.9.9.0, max is 7. This option cannot be changed during the game."); - el.append(_options.render()); + el.append(options.render()); App.UI.DOM.appendNewElement("h2", el, "Content"); - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); - _options.addOption("Proportion of slave girls with dicks", "seeDicks") + options.addOption("Proportion of slave girls with dicks", "seeDicks") .addValueList([ ["None (0%)", 0], ["Nearly none (1%)", 1], @@ -442,277 +439,277 @@ App.Intro.summary = function() { ]); if (V.seeDicks === 0) { - _options.addOption("Should you be able to surgically attach a penis to your female slaves and starting girls?", "makeDicks") + options.addOption("Should you be able to surgically attach a penis to your female slaves and starting girls?", "makeDicks") .addValue("Yes", 1).on().addValue("No", 0).off(); } - _options.addOption("Slaves getting sick is", "seeIllness") + options.addOption("Slaves getting sick is", "seeIllness") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Pregnancy related content is", "seePreg") + options.addOption("Pregnancy related content is", "seePreg") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Children born in game strictly adhering to dick content settings is", "seeDicksAffectsPregnancy") + options.addOption("Children born in game strictly adhering to dick content settings is", "seeDicksAffectsPregnancy") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); if (V.seeDicksAffectsPregnancy === 0) { - _options.addOption("XX slaves only fathering daughters is", "adamPrinciple") + options.addOption("XX slaves only fathering daughters is", "adamPrinciple") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); } - _options.addOption("Extreme pregnancy content like broodmothers is", "seeHyperPreg") + options.addOption("Extreme pregnancy content like broodmothers is", "seeHyperPreg") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Advanced pregnancy complications such as miscarriage and premature birth are", "dangerousPregnancy") + options.addOption("Advanced pregnancy complications such as miscarriage and premature birth are", "dangerousPregnancy") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Extreme content like amputation is", "seeExtreme") + options.addOption("Extreme content like amputation is", "seeExtreme") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Bestiality content is", "seeBestiality") + options.addOption("Bestiality content is", "seeBestiality") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Watersports content is", "seePee") + options.addOption("Watersports content is", "seePee") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Incest is", "seeIncest") + options.addOption("Incest is", "seeIncest") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); if (V.seeDicks !== 0 || V.makeDicks !== 0) { - _options.addOption("Circumcision is", "seeCircumcision") + options.addOption("Circumcision is", "seeCircumcision") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); } - el.append(_options.render()); + el.append(options.render()); App.UI.DOM.appendNewElement("h2", el, "Mods"); - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); - _options.addOption("The Special Force Mod is", "Toggle", V.SF) + options.addOption("The Special Force Mod is", "Toggle", V.SF) .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment(`This mod is initially from anon1888 but expanded by SFanon offers a lategame special (started out as security but changed to special in order to try and reduce confusion with CrimeAnon's separate Security Expansion (SecExp) mod) force, that is triggered after week 72. It is non-canon where it conflicts with canonical updates to the base game.`); - _options.addOption("The Security Expansion Mod is", "secExpEnabled") + options.addOption("The Security Expansion Mod is", "secExpEnabled") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment(`This mod introduces security and crime in the arcology, as well as attacks and battles. The mod can be activated in any moment, but it may result in unbalanced gameplay if activated very late in the game.`); - el.append(_options.render()); + el.append(options.render()); return el; } function slavesContent() { const el = new DocumentFragment(); - let _options = new App.UI.OptionsGroup(); + let options = new App.UI.OptionsGroup(); - _options.addOption("Master Suite report details such as slave changes are", "verboseDescriptions") + options.addOption("Master Suite report details such as slave changes are", "verboseDescriptions") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Slaves can have alternate titles", "newDescriptions") + options.addOption("Slaves can have alternate titles", "newDescriptions") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Mention ethnicity", "seeRace") + options.addOption("Mention ethnicity", "seeRace") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Mention nationality", "seeNationality") + options.addOption("Mention nationality", "seeNationality") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Dynasties of enslaved royalties are", "realRoyalties") + options.addOption("Dynasties of enslaved royalties are", "realRoyalties") .addValueList([["Historical", 1], ["Random", 0]]); - _options.addOption("New slaves may have male names", "allowMaleSlaveNames").addComment("This only affects slave generation and not your ability to name your slaves.") + options.addOption("New slaves may have male names", "allowMaleSlaveNames").addComment("This only affects slave generation and not your ability to name your slaves.") .addValue("Enabled", true).on().addValue("Disabled", false).off(); - _options.addOption("Schema for ordering slave names is", "surnameOrder") + options.addOption("Schema for ordering slave names is", "surnameOrder") .addValueList([["Country of origin", 0], ["Name Surname", 1], ["Surname Name", 2]]); - _options.addOption("Family size", "limitFamilies").addComment("Controls acquisition of additional relatives, by means other than birth, for slaves with families.") + options.addOption("Family size", "limitFamilies").addComment("Controls acquisition of additional relatives, by means other than birth, for slaves with families.") .addValue("Allow extended families", 0).on().addValue("Restrict family size (Vanilla Emulation)", 1).off(); - _options.addOption("Tracking distant relatives is", "showDistantRelatives") + options.addOption("Tracking distant relatives is", "showDistantRelatives") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Successive breeding resulting in sub-average slaves is", "inbreeding") + options.addOption("Successive breeding resulting in sub-average slaves is", "inbreeding") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Family titles for relatives", "allowFamilyTitles") + options.addOption("Family titles for relatives", "allowFamilyTitles") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Slave assets affected by weight is", "weightAffectsAssets") + options.addOption("Slave assets affected by weight is", "weightAffectsAssets") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Diet will still affect asset size."); - _options.addOption("Curative side effects are", "curativeSideEffects") + options.addOption("Curative side effects are", "curativeSideEffects") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Slaves with fat lips or heavy oral piercings may lisp", "disableLisping") + options.addOption("Slaves with fat lips or heavy oral piercings may lisp", "disableLisping") .addValue("Yes", 0).on().addValue("No", 1).off(); - el.append(_options.render()); + el.append(options.render()); App.UI.DOM.appendNewElement("h2", el, "Age"); - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); - _options.addOption("Slave aging", "seeAge") + options.addOption("Slave aging", "seeAge") .addValue("Enabled", 1).on().addValue("Celebrate birthdays, but don't age.", 2).neutral().addValue("Disabled", 0).off(); - _options.addOption("Slave age distribution", "pedo_mode").addComment("In loli mode most new slaves are under the age of 18. May not apply to custom slaves and slaves from specific events.") + options.addOption("Slave age distribution", "pedo_mode").addComment("In loli mode most new slaves are under the age of 18. May not apply to custom slaves and slaves from specific events.") .addValue("Loli mode", 1, () => V.minimumSlaveAge = 5).addValue("Normal mode", 0); V.minimumSlaveAge = Math.clamp(V.minimumSlaveAge, 3, 18); - _options.addOption("Girls appearing in the game will be no younger than", "minimumSlaveAge").showTextBox(); + options.addOption("Girls appearing in the game will be no younger than", "minimumSlaveAge").showTextBox(); - _options.addOption("Molestation of slaves younger than V.minimumSlaveAge is", "extremeUnderage") + options.addOption("Molestation of slaves younger than V.minimumSlaveAge is", "extremeUnderage") .addValue("Permitted", 1).on().addValue("Forbidden", 0).off(); V.retirementAge = Math.clamp(V.retirementAge, V.minimumSlaveAge + 1, 120); - _options.addOption("Initial retirement age will be at", "retirementAge") + options.addOption("Initial retirement age will be at", "retirementAge") .addComment("May cause issues with New Game and initial slaves if set below 45.").showTextBox(); V.fertilityAge = Math.clamp(V.fertilityAge, 3, 18); - _options.addOption("Girls will not be able to become pregnant if their age is under", "fertilityAge").showTextBox(); + options.addOption("Girls will not be able to become pregnant if their age is under", "fertilityAge").showTextBox(); V.potencyAge = Math.clamp(V.potencyAge, 3, 18); - _options.addOption("Girls will not be able to impregnate others if their age is under", "potencyAge").showTextBox(); + options.addOption("Girls will not be able to impregnate others if their age is under", "potencyAge").showTextBox(); - _options.addOption("Precocious puberty is", "precociousPuberty").addComment("Under certain conditions they can become pregnant or inseminate others younger then normal age - V.fertilityAge, though they may also experience delayed puberty.") + options.addOption("Precocious puberty is", "precociousPuberty").addComment("Under certain conditions they can become pregnant or inseminate others younger then normal age - V.fertilityAge, though they may also experience delayed puberty.") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Age penalties are", "AgePenalty").addComment("Job and career penalties due to age.") + options.addOption("Age penalties are", "AgePenalty").addComment("Job and career penalties due to age.") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - _options.addOption("Children growing as they age is", "loliGrow") + options.addOption("Children growing as they age is", "loliGrow") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - el.append(_options.render()); + el.append(options.render()); return el; } function playerContent() { const el = new DocumentFragment(); - let _options = new App.UI.OptionsGroup(); - let _option; + let options = new App.UI.OptionsGroup(); + let option; let r; let linkArray; if (V.freshPC === 1 || V.saveImported === 0) { - _options.addOption("You are a", "title", V.PC) + options.addOption("You are a", "title", V.PC) .addValue("Masculine Master", 1, () => V.PC.genes = "XY").addValue("Feminine Mistress", 0, () => V.PC.genes = "XX"); - _options.addOption(`Everyone calls you <b>${PlayerName()}.</b>`); - _options.addOption("Your given name is", "slaveName", V.PC).showTextBox(); + options.addOption(`Everyone calls you <b>${PlayerName()}.</b>`); + options.addOption("Your given name is", "slaveName", V.PC).showTextBox(); if (V.PC.slaveSurname === 0) { - _option = _options.addOption("And no surname", "slaveSurname", V.PC) + option = options.addOption("And no surname", "slaveSurname", V.PC) .addValue("Add a surname", "Anon") .addComment("Surnames cannot be changed during the game outside of special circumstances."); } else { - _option = _options.addOption("And your surname is", "slaveSurname", V.PC).showTextBox() + option = options.addOption("And your surname is", "slaveSurname", V.PC).showTextBox() .addValue("Go by a single name", 0) .addComment("Surnames cannot be changed during the game outside of special circumstances."); } V.PC.physicalAge = V.PC.actualAge; V.PC.visualAge = V.PC.actualAge; - _options.addOption("You are", "actualAge", V.PC).showTextBox() + options.addOption("You are", "actualAge", V.PC).showTextBox() .addRange(25, 35, "<", "Surprisingly young").addRange(40, 50, "<", "Entering middle age") .addRange(55, 65, "<", "Well into middle age").addRange(70, 65, ">=", "Old"); - _options.addOption(`Your birthday was <strong>${V.PC.birthWeek}</strong> weeks ago.`, "birthWeek", V.PC).showTextBox(); + options.addOption(`Your birthday was <strong>${V.PC.birthWeek}</strong> weeks ago.`, "birthWeek", V.PC).showTextBox(); - _options.addOption("Player aging is", "playerAging") + options.addOption("Player aging is", "playerAging") .addValue("Enabled", 2).on().addValue("Celebrate birthdays, but don't age.", 1).neutral().addValue("Disabled", 0).off() .addComment("This option cannot be changed during the game."); if (V.PC.customTitle) { - _options.addOption("Custom title", "customTitle", V.PC).showTextBox() + options.addOption("Custom title", "customTitle", V.PC).showTextBox() .addValue("Reset to default", "", () => { delete V.PC.customTitle; delete V.PC.customTitleLisp; }); - _options.addOption("Lisped custom title", "customTitleLisp", V.PC).showTextBox() + options.addOption("Lisped custom title", "customTitleLisp", V.PC).showTextBox() .addComment('If using a custom title, select Master or Mistress to set the gender of your title. Make sure to replace your "s"s with "th"s to have working lisps in your lisped title.'); } else { - _options.addOption("Custom title", "customTitle", V.PC) + options.addOption("Custom title", "customTitle", V.PC) .addValue("Set custom title", "Master", () => V.PC.customTitleLisp = 'Mather'); } - App.Intro.pcAppearance(_options); + App.Intro.pcAppearance(options); - _options.addOption("Your face is", "faceShape", V.PC) + options.addOption("Your face is", "faceShape", V.PC) .addValueList([["Normal", "normal"], ["Androgynous", "androgynous"], ["Masculine", "masculine"], ["Cute", "cute"], ["Sensual", "sensual"], ["Exotic", "exotic"]]); - _options.addOption("Your preferred refreshment is", "refreshment", V.PC).showTextBox() + options.addOption("Your preferred refreshment is", "refreshment", V.PC).showTextBox() .addValue("Cigars", "cigar", () => { V.PC.refreshmentType = 0; }) .addValue("Whiskey", "whiskey", () => { V.PC.refreshmentType = 1; }); - _option = _options.addOption("Which you", "refreshmentType", V.PC) + option = options.addOption("Which you", "refreshmentType", V.PC) .addValueList([["Smoke", 0], ["Drink", 1], ["Eat", 2], ["Snort", 3], ["Inject", 4], ["Pop", 5], ["Orally dissolve", 6]]); if (V.PC.refreshmentType === 0) { - _option.addComment('"Smoked" must fit into the following sentence: "I smoked a V.PC.refreshment" to fit events properly.'); + option.addComment('"Smoked" must fit into the following sentence: "I smoked a V.PC.refreshment" to fit events properly.'); } else if (V.PC.refreshmentType === 5) { - _option.addComment('"Popped" must fit into the following sentence: "I shook the bottle of V.PC.refreshment" to fit events properly.'); + option.addComment('"Popped" must fit into the following sentence: "I shook the bottle of V.PC.refreshment" to fit events properly.'); } else if (V.PC.refreshmentType === 6) { - _option.addComment('"Orally Dissolved" must fit into the following sentence: "I placed a tab of V.PC.refreshment under my tongue" to fit events properly.'); + option.addComment('"Orally Dissolved" must fit into the following sentence: "I placed a tab of V.PC.refreshment under my tongue" to fit events properly.'); } - _option = _options.addOption("Before you came to the Free Cities, you were a", "career", V.PC); + option = options.addOption("Before you came to the Free Cities, you were a", "career", V.PC); if (V.PC.career === "arcology owner") { - _option.addValue("Arcology owner", "arcology owner"); + option.addValue("Arcology owner", "arcology owner"); } else { - _option.addValueList([["Member of the idle wealthy", "wealth"], ["Business leader", "capitalist"], + option.addValueList([["Member of the idle wealthy", "wealth"], ["Business leader", "capitalist"], ["Mercenary", "mercenary"], ["Slaver", "slaver"], ["Engineer", "engineer"], ["Doctor", "medicine"], ["Hacker", "BlackHat"], ["Minor celebrity", "celebrity"], ["Escort", "escort"], ["Servant", "servant"], ["Gang leader", "gang"]] ); if (V.secExpEnabled > 0) { switch (V.PC.career) { case "capitalist": - _option.addComment(`<div><span class="yellowgreen">The propaganda hub's upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="yellowgreen">The propaganda hub's upgrades will be cheaper.</span></div>`); break; case "mercenary": - _option.addComment(`<div><span class="green">Easier to maintain security</span> and <span class="yellowgreen">the security HQ's upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="green">Easier to maintain security</span> and <span class="yellowgreen">the security HQ's upgrades will be cheaper.</span></div>`); break; case "slaver": - _option.addComment(`<div><span class="green">Easier to maintain authority</span> and <span class="yellowgreen">the security HQ's upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="green">Easier to maintain authority</span> and <span class="yellowgreen">the security HQ's upgrades will be cheaper.</span></div>`); break; case "engineer": - _option.addComment(`<div><span class="yellowgreen">construction and upgrade of facilities will be cheaper.</span></div>`); + option.addComment(`<div><span class="yellowgreen">construction and upgrade of facilities will be cheaper.</span></div>`); break; case "medicine": - _option.addComment(`<div><span class="yellowgreen">Drug upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="yellowgreen">Drug upgrades will be cheaper.</span></div>`); break; case "celebrity": - _option.addComment(`<div><span class="yellowgreen">The propaganda hub's upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="yellowgreen">The propaganda hub's upgrades will be cheaper.</span></div>`); break; case "escort": - _option.addComment(`<div><span class="red">Harder to maintain authority.</span></div>`); + option.addComment(`<div><span class="red">Harder to maintain authority.</span></div>`); break; case "servant": - _option.addComment(`<div><span class="red">Harder to maintain authority.</span></div>`); + option.addComment(`<div><span class="red">Harder to maintain authority.</span></div>`); break; case "gang": - _option.addComment(`<div><span class="green">Easier to maintain authority</span> and <span class="yellowgreen">the security HQ's upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="green">Easier to maintain authority</span> and <span class="yellowgreen">the security HQ's upgrades will be cheaper.</span></div>`); break; case "BlackHat": - _option.addComment(`<div><span class="red">Harder to maintain authority.</span></div>`); + option.addComment(`<div><span class="red">Harder to maintain authority.</span></div>`); break; default: - _option.addComment(`<div><span class="red">Harder to maintain authority,</span> but <span class="yellowgreen">the propaganda hub's upgrades will be cheaper.</span></div>`); + option.addComment(`<div><span class="red">Harder to maintain authority,</span> but <span class="yellowgreen">the propaganda hub's upgrades will be cheaper.</span></div>`); } } } - _options.addOption("It is rumored that you acquired your arcology through", "rumor", V.PC) + options.addOption("It is rumored that you acquired your arcology through", "rumor", V.PC) .addValueList([["Wealth", "wealth"], ["Hard work", "diligence"], ["Force", "force"], ["Social engineering", "social engineering"], ["Blind luck", "luck"]] ); - el.append(_options.render()); + el.append(options.render()); App.UI.DOM.appendNewElement("h2", el, "Sexuality"); - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); if (V.PC.vagina !== -1 && V.PC.dick !== 0) { State.temporary.vaginaPenis = 2; @@ -722,7 +719,7 @@ App.Intro.summary = function() { State.temporary.vaginaPenis = 0; } - _option = _options.addOption("You have a", "vaginaPenis", State.temporary) + option = options.addOption("You have a", "vaginaPenis", State.temporary) .addValue("Penis", 0, () => { V.PC.preg = 0; V.PC.pregType = 0; @@ -748,50 +745,54 @@ App.Intro.summary = function() { V.PC.ovaries = 1; }); if (State.temporary.vaginaPenis === 0) { - _option.addComment("Standard sex scenes; easiest reputation maintenance."); + option.addComment("Standard sex scenes; easiest reputation maintenance."); } else if (State.temporary.vaginaPenis === 1) { - _option.addComment("Sex scene variations; most difficult reputation maintenance."); + option.addComment("Sex scene variations; most difficult reputation maintenance."); } else { - _option.addComment("Sex scene variations; more difficult reputation maintenance; some unique opportunities, especially with breasts."); + option.addComment("Sex scene variations; more difficult reputation maintenance; some unique opportunities, especially with breasts."); } if (V.PC.vagina !== -1) { - _option = _options.addOption("You are", "preg", V.PC) + option = options.addOption("You are", "preg", V.PC) .addValue("Taking contraceptives", -1, () => { V.PC.pregType = 0; V.PC.labor = 0; }) .addValue("Not taking contraceptives", 0, () => { V.PC.pregType = 0; V.PC.labor = 0; }) .addRange(16, 37, "<=", "Pregnant").addCallback(() => { V.PC.pregType = 1; V.PC.labor = 0; }) .addRange(40, 42, "<=", "Ready to drop").addCallback(() => { V.PC.pregType = 1; V.PC.labor = 0; }) .addRange(43, 42, ">", "Ready to drop with octuplets").addCallback(() => { V.PC.pregType = 8; V.PC.labor = 1; }); if (V.PC.preg === -1) { - _option.addComment("You can't get pregnant, however there will be a slight increase to living expenses."); + option.addComment("You can't get pregnant, however there will be a slight increase to living expenses."); } if (V.PC.counter.birthsTotal > 0) { - _options.addOption("").addComment(`You have given birth to <strong>${V.PC.counter.birthsTotal}</strong> babies.`); + options.addOption("").addComment(`You have given birth to <strong>${V.PC.counter.birthsTotal}</strong> babies.`); } - _option = _options.addOption("Hormone effects", "pregMood", V.PC) - .addValueList([["None", 0], ["Caring and motherly", 1], ["Aggressive and domineering", 2]]); + option = options.addOption("Hormone effects", "pregMood", V.PC) + .addValueList([ + ["None", 0], + ["Caring and motherly", 1], + ["Aggressive and domineering", 2] + ]); if (V.PC.pregMood === 1) { - _option.addComment("Sex scene alterations; slaves will trust you more, but may try to take advantage of your mercy."); + option.addComment("Sex scene alterations; slaves will trust you more, but may try to take advantage of your mercy."); } else if (V.PC.pregMood === 2) { - _option.addComment("Sex scene alterations; slaves will fear you more, but will become more submissive to you."); + option.addComment("Sex scene alterations; slaves will fear you more, but will become more submissive to you."); } } if (V.PC.title === 1 && V.PC.boobs <= 100) { - _option = _options.addOption("Your chest is", "boobs", V.PC).addValue("Manly", 100, () => V.PC.boobsImplant = 0); + option = options.addOption("Your chest is", "boobs", V.PC).addValue("Manly", 100, () => V.PC.boobsImplant = 0); } else { - _option = _options.addOption("Your breasts are", "boobs", V.PC).addValue("Flat", 100, () => V.PC.boobsImplant = 0); + option = options.addOption("Your breasts are", "boobs", V.PC).addValue("Flat", 100, () => V.PC.boobsImplant = 0); } - _option.addValueList([["C-cups", 500], ["DD-cups", 900], ["F-cups", 1100], ["G-cups", 1300]]); + option.addValueList([["C-cups", 500], ["DD-cups", 900], ["F-cups", 1100], ["G-cups", 1300]]); if (V.PC.boobs >= 500) { - _options.addOption("Your breasts are", "boobsImplant", V.PC) + options.addOption("Your breasts are", "boobsImplant", V.PC) .addValueList([["All natural", 0], ["Fake", 400]]); } - el.append(_options.render()); + el.append(options.render()); } else { r = []; r.push(`You are a`); @@ -826,37 +827,37 @@ App.Intro.summary = function() { } r.push(`${V.PC.skin} skin, ${V.PC.hColor} hair and ${App.Desc.eyesColor(V.PC)}. You have a ${V.PC.faceShape} face.`); App.Events.addNode(el, r, "p"); - _options = new App.UI.OptionsGroup(); - _options.addOption("Player aging is", "playerAging") + options = new App.UI.OptionsGroup(); + options.addOption("Player aging is", "playerAging") .addValue("Enabled", 2).on().addValue("Celebrate birthdays, but don't age.", 1).neutral().addValue("Disabled", 0).off() .addComment("This option cannot be changed during the game."); if (V.PC.customTitle) { - _options.addOption("Custom title", "customTitle", V.PC).showTextBox() + options.addOption("Custom title", "customTitle", V.PC).showTextBox() .addValue("Reset to default", "", () => { delete V.PC.customTitle; delete V.PC.customTitleLisp; }); - _options.addOption("Lisped custom title", "customTitleLisp", V.PC).showTextBox() + options.addOption("Lisped custom title", "customTitleLisp", V.PC).showTextBox() .addComment('If using a custom title, select Master or Mistress to set the gender of your title. Make sure to replace your "s"s with "th"s to have working lisps in your lisped title.'); } else { - _options.addOption("Custom title", "customTitle", V.PC) + options.addOption("Custom title", "customTitle", V.PC) .addValue("Set custom title", "Master", () => V.PC.customTitleLisp = 'Mather'); } - _options.addOption("Your preferred refreshment is", "refreshment", V.PC).showTextBox() + options.addOption("Your preferred refreshment is", "refreshment", V.PC).showTextBox() .addValue("Cigars", "cigar", () => { V.PC.refreshmentType = 0; }) .addValue("Whiskey", "whiskey", () => { V.PC.refreshmentType = 1; }); - _option = _options.addOption("Which you", "refreshmentType", V.PC) + option = options.addOption("Which you", "refreshmentType", V.PC) .addValueList([["Smoke", 0], ["Drink", 1], ["Eat", 2], ["Snort", 3], ["Inject", 4], ["Pop", 5], ["Orally dissolve", 6]]); if (V.PC.refreshmentType === 0) { - _option.addComment('"Smoked" must fit into the following sentence: "I smoked a V.PC.refreshment" to fit events properly.'); + option.addComment('"Smoked" must fit into the following sentence: "I smoked a V.PC.refreshment" to fit events properly.'); } else if (V.PC.refreshmentType === 5) { - _option.addComment('"Popped" must fit into the following sentence: "I shook the bottle of V.PC.refreshment" to fit events properly.'); + option.addComment('"Popped" must fit into the following sentence: "I shook the bottle of V.PC.refreshment" to fit events properly.'); } else if (V.PC.refreshmentType === 6) { - _option.addComment('"Orally Dissolved" must fit into the following sentence: "I placed a tab of V.PC.refreshment under my tongue" to fit events properly.'); + option.addComment('"Orally Dissolved" must fit into the following sentence: "I placed a tab of V.PC.refreshment under my tongue" to fit events properly.'); } - el.append(_options.render()); + el.append(options.render()); r = []; switch (V.PC.career) { @@ -1025,27 +1026,27 @@ App.Intro.summary = function() { function interfaceContent() { const el = new DocumentFragment(); - let _options = new App.UI.OptionsGroup(); + let options = new App.UI.OptionsGroup(); - _options.addOption("Help tooltips are", "tooltipsEnabled") + options.addOption("Help tooltips are", "tooltipsEnabled") .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment(`This is mostly for new players. <span class="exampleTooltip.noteworthy">Colored text</span> can have tooltips.`); - _options.addOption("Accordion on week end defaults to", "useAccordion") + options.addOption("Accordion on week end defaults to", "useAccordion") .addValue("Open", 0).on().addValue("Collapsed", 1).off(); - _options.addOption("Economic Tabs on weekly reports are", "useTabs") + options.addOption("Economic Tabs on weekly reports are", "useTabs") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - el.append(_options.render()); + el.append(options.render()); App.UI.DOM.appendNewElement("h2", el, "Images"); - _options = new App.UI.OptionsGroup(); + options = new App.UI.OptionsGroup(); - _options.addOption("Images are", "seeImages") + options.addOption("Images are", "seeImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off(); - el.append(_options.render()); + el.append(options.render()); el.append(App.UI.artOptions()); return el; -- GitLab