From db1feb880fc0c65d612c740b73f5a31bd24cf67a Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 29 Oct 2020 09:32:41 -0400 Subject: [PATCH] remove many underscores --- src/endWeek/economics/neighborsDevelopment.js | 1008 ++++++++--------- 1 file changed, 498 insertions(+), 510 deletions(-) diff --git a/src/endWeek/economics/neighborsDevelopment.js b/src/endWeek/economics/neighborsDevelopment.js index 7c39c591ebf..df1241e755b 100644 --- a/src/endWeek/economics/neighborsDevelopment.js +++ b/src/endWeek/economics/neighborsDevelopment.js @@ -6,12 +6,10 @@ App.EndWeek.neighborsDevelopment = function() { let He, his; let averageProsperity = 0; - let _agentBonus = 0; - let _corpBonus; - let _error; - let _desc; - let _prosperityDiff; - let _redHanded; // TODO: may be used too much and not properly reset. + let agentBonusValue = 0; + let corpBonus; + let error; + let redHanded; let desc; for (let i = 0; i < V.arcologies.length; i++) { if (V.arcologies[i].prosperity < 10) { @@ -22,11 +20,11 @@ App.EndWeek.neighborsDevelopment = function() { averageProsperity = averageProsperity / V.arcologies.length; if (V.corp.Incorporated === 1) { - _corpBonus = Math.trunc(1000 * Math.pow(App.Corporate.value, 0.1)); + corpBonus = Math.trunc(1000 * Math.pow(App.Corporate.value, 0.1)); } if (V.useTabs === 0) { - // __Arcologies in the Free City__ + App.UI.DOM.appendNewElement("h2", el, `Arcologies in the Free City`); } for (let i = 0; i < V.arcologies.length; i++) { @@ -58,8 +56,8 @@ App.EndWeek.neighborsDevelopment = function() { arc.prosperity += random(0, 3); break; case "your agent": - _agentBonus = agentBonus(i); - arc.prosperity += random(0, 3) + _agentBonus; + agentBonusValue = agentBonus(i); + arc.prosperity += random(0, 3) + agentBonusValue; break; default: arc.prosperity += random(-1, 1); @@ -78,7 +76,7 @@ App.EndWeek.neighborsDevelopment = function() { r.push(`<span class="red">BUG: ${_agent} also was ${_agent.assignment}!</span>`); assignJob(_agent, "be your agent"); } - if (_agentBonus > 0) { + if (agentBonusValue > 0) { r.push(`<span class="green">${He} does an excellent job this week.</span>`); } r.push(`The arcology`); @@ -87,15 +85,15 @@ App.EndWeek.neighborsDevelopment = function() { } if (arc.direction === 0) { - _error = 5; + error = 5; } else { - _error = 10; + error = 10; } - _error -= Math.min(2 * V.assistant.power, _error); - const _prosperity = (Math.trunc((0.1 * arc.prosperity * random(100 - _error, 100 + _error)) / 100)); + error -= Math.min(2 * V.assistant.power, error); + const prosperity = (Math.trunc((0.1 * arc.prosperity * random(100 - error, 100 + error)) / 100)); let millions = ``; if (V.showNumbers !== 2) { - if (V.showNumbers === 1 && _prosperity > V.showNumbersMax) { + if (V.showNumbers === 1 && prosperity > V.showNumbersMax) { millions = `m`; } else { millions = `million`; @@ -104,7 +102,7 @@ App.EndWeek.neighborsDevelopment = function() { millions = `m`; } millions += `,</span>`; - r.push(`has an estimated GSP of <span class="yellowgreen">${cashFormat(_prosperity)}${millions}`); + r.push(`has an estimated GSP of <span class="yellowgreen">${cashFormat(prosperity)}${millions}`); if (arc.rival === 1 && arc.government !== "an individual") { r.push(`but it is undergoing some internal turmoil. <span class="red">Resentment that has been quietly building among the arcology's elite turns into open rebellion!</span>`); if (arc.PCminority > 0) { @@ -221,13 +219,13 @@ App.EndWeek.neighborsDevelopment = function() { r.push(`Its direct democracy votes to empower some elected officials in the hope they can lead the arcology out of its problems.`); arc.government = "elected officials"; } - _desc = FutureSocieties.decay(i).map((fs) => FutureSocieties.displayName(fs)); - if (_desc.length > 2) { - r.push(`Its citizens take the opportunity to make radical social changes, <span class="cyan">purging the ${_desc.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch)}</span> favored by the old government.`); - } else if (_desc.length === 2) { - r.push(`Its citizens take the opportunity to make social changes, <span class="cyan">discarding the ${_desc[0]} and ${_desc[1]}</span> favored by the old government.`); - } else if (_desc.length === 1) { - r.push(`Its citizens take the opportunity to make social change and <span class="cyan">abandon the ${_desc[0]}</span> favored by the old government.`); + desc = FutureSocieties.decay(i).map((fs) => FutureSocieties.displayName(fs)); + if (desc.length > 2) { + r.push(`Its citizens take the opportunity to make radical social changes, <span class="cyan">purging the ${desc.reduce((res, ch, i, arr) => res + (i === arr.length - 1 ? ' and ' : ', ') + ch)}</span> favored by the old government.`); + } else if (desc.length === 2) { + r.push(`Its citizens take the opportunity to make social changes, <span class="cyan">discarding the ${desc[0]} and ${desc[1]}</span> favored by the old government.`); + } else if (desc.length === 1) { + r.push(`Its citizens take the opportunity to make social change and <span class="cyan">abandon the ${desc[0]}</span> favored by the old government.`); } } else { r.push(`The arcology is paralyzed by internal dissension over how to respond.`); @@ -257,16 +255,16 @@ App.EndWeek.neighborsDevelopment = function() { if ((arc.government === "your agent") || (arc.government === "your trustees")) { arc.ownership = 0; } - let _owned = arc.minority + arc.ownership + arc.PCminority; + let owned = arc.minority + arc.ownership + arc.PCminority; if (arc.minority < 10) { arc.minority = 0; } else if (arc.minority < arc.PCminority) { arc.minority = 0; - } else if (_owned >= 95) { + } else if (owned >= 95) { arc.minority -= random(3, 5); - } else if (arc.minority > (100 - _owned) * 5) { + } else if (arc.minority > (100 - owned) * 5) { arc.minority -= random(3, 5); - } else if (arc.minority < (100 - _owned) * 4) { + } else if (arc.minority < (100 - owned) * 4) { if (arc.minority < 10) { if (arc.ownership + arc.PCminority <= 90) { arc.minority = 10; @@ -286,12 +284,12 @@ App.EndWeek.neighborsDevelopment = function() { if (arc.government !== "your agent") { if (arc.government !== "your trustees") { if (arc.minority + arc.ownership + arc.PCminority < 100) { - _prosperityDiff = arc.prosperity - averageProsperity; - if (_prosperityDiff > random(-10, 50)) { + const prosperityDiff = arc.prosperity - averageProsperity; + if (prosperityDiff > random(-10, 50)) { arc.ownership += 1; arc.prosperity -= 5; r.push(`Its leadership acquires an increased share of its ownership. This places its government in control of approximately <span class="orange">${Math.trunc(arc.ownership * _economicUncertainty)}%</span> of the arcology${(arc.minority > 0) ? `, against its most prominent competition with a <span class="tan">${Math.trunc(arc.minority * _economicUncertainty)}%</span> share`:``}.`); - } else if (_prosperityDiff < random(-50, 10)) { + } else if (prosperityDiff < random(-50, 10)) { if (arc.ownership > 0) { if (arc.rival !== 1 || (arc.rival === 1 && arc.ownership > 51 && random(1, 2) === 1)) { arc.ownership -= 1; @@ -349,7 +347,7 @@ App.EndWeek.neighborsDevelopment = function() { arc.prosperity = Math.clamp(arc.prosperity, 1, V.AProsperityCap); if (random(0, 100) >= _Catchchance - (10 * V.arcologies[0].CyberEconomic)) { V.arcologies[0].prosperity -= V.arcologies[0].CyberEconomic * 3; - _redHanded = 1; + redHanded = 1; repX(forceNeg(random(100, 200)), "war"); if (V.secExpEnabled > 0) { V.SecExp.core.authority -= random(100, 500) * V.arcologies[0].CyberEconomic; @@ -359,7 +357,7 @@ App.EndWeek.neighborsDevelopment = function() { } r.push(`You target ${arc.name} for <span class="yellow">digital economic warfare,</span> successfully raiding its coffers for <span class="yellowgreen">${cashFormat(_WarSpoils)}</span> this week.`); cashX(_WarSpoils, "war"); - if (_redHanded === 1) { + if (redHanded === 1) { r.push(`A successful trace back to your arcology has exposed your actions, <span class="red">damaging your reputation</span> and <span class="red">scaring away potential investors.</span>`); if (V.secExpEnabled > 0) { r.push(`To add insult to injury, <span class="red">your authority has been weakened</span> and your actions have painted your arcology as a <span class="red">haven for crime.</span>`); @@ -393,10 +391,9 @@ App.EndWeek.neighborsDevelopment = function() { } arc.prosperity = Math.clamp(arc.prosperity, 1, 300); arc.ownership = Math.clamp(arc.ownership, 0, 100); - _redHanded; if (random(0, 100) >= _Catchchance - (10 * V.arcologies[0].CyberReputation)) { V.arcologies[0].prosperity -= V.arcologies[0].CyberReputation * 3; - _redHanded = 1; + redHanded = 1; repX(forceNeg(random(100, 200)), "war"); if (V.secExpEnabled > 0) { V.SecExp.core.authority -= random(100, 500) * V.arcologies[0].CyberReputation; @@ -405,7 +402,7 @@ App.EndWeek.neighborsDevelopment = function() { V.arcologies[0].prosperity = Math.clamp(V.arcologies[0].prosperity, 1, 300); } r.push(`You target ${arc.name}'s leadership for <span class="yellow">character assassination</span> in an attempt to destabilize the arcology.`); - if (_redHanded === 1) { + if (redHanded === 1) { r.push(`A successful trace back to your arcology has exposed your actions, <span class="red">damaging your reputation</span> and <span class="red">scaring away potential investors.</span>`); if (V.secExpEnabled > 0) { r.push(`To add insult to injury, <span class="red">your authority has been weakened</span> and your actions have painted your arcology as a <span class="red">haven for crime.</span>`); @@ -421,7 +418,7 @@ App.EndWeek.neighborsDevelopment = function() { if (arc.name === arc2.name) { arc.name = "Arcology X-" + (i < 4 ? i : i + 1); /* X-4 is reserved for player's arcology, so X-1 is available */ - r.push(`It resumes its original name, <span class="bold">${arc.name}</span>, since the arcology to the arc.direction of yours is also named arc2.name.`); + r.push(`It resumes its original name, <span class="bold">${arc.name}</span>, since the arcology to the ${arc.direction} of yours is also named ${arc2.name}.`); break; } } @@ -461,7 +458,7 @@ App.EndWeek.neighborsDevelopment = function() { _efficiency = random(-1, 5); break; case "your agent": - _efficiency = _agentBonus + random(-1, 1); + _efficiency = agentBonusValue + random(-1, 1); break; case "a corporation": _efficiency = random(1, 2); @@ -477,9 +474,9 @@ App.EndWeek.neighborsDevelopment = function() { if (arc.direction !== 0) { FutureSocieties.applyBroadProgress(i, _efficiency); } - const _passive = new App.Neighbor.PassiveFSInfluence(i); + const passive = new App.Neighbor.PassiveFSInfluence(i); if (arc.FSSupremacist !== "unset") { - r.push(`${_passive.output("FSSupremacist")}`); + r.push(`${passive.output("FSSupremacist")}`); if (arc.direction !== 0) { if (arc.FSSupremacist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -524,7 +521,7 @@ App.EndWeek.neighborsDevelopment = function() { r.push(`<span class="bold">${arc.name}</span> to mark the occasion.`); } } else if (arc.FSSupremacist < 0) { - r.push(`${arc.name} <span class="cyan">has given up</span> on arc.FSSupremacistRace Supremacy.`); + r.push(`${arc.name} <span class="cyan">has given up</span> on ${arc.FSSupremacistRace} Supremacy.`); arc.FSSupremacist = "unset"; } } @@ -533,14 +530,14 @@ App.EndWeek.neighborsDevelopment = function() { if (!V.corp.SpecRaces.includes(arc.FSSupremacistRace)) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's racially inferior slaves, improving sales and helping social progress.`); arc.FSSupremacist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSSubjugationist !== "unset") { - r.push(`${_passive.output("FSSubjugationist")}`); + r.push(`${passive.output("FSSubjugationist")}`); if (arc.direction !== 0) { if (arc.FSSubjugationist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -585,7 +582,7 @@ App.EndWeek.neighborsDevelopment = function() { r.push(`<span class="bold">${arc.name}</span> to mark the occasion.`); } } else if (arc.FSSubjugationist < 0) { - r.push(`${arc.name} <span class="cyan">has given up</span> on arc.FSSubjugationistRace Subjugationism.`); + r.push(`${arc.name} <span class="cyan">has given up</span> on ${arc.FSSubjugationistRace} Subjugationism.`); arc.FSSubjugationist = "unset"; } } @@ -594,14 +591,14 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecRaces.includes(arc.FSSubjugationistRace)) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's ${arc.FSSubjugationistRace} slaves, improving sales and helping social progress.`); arc.FSSubjugationist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSRepopulationFocus !== "unset") { - r.push(`${_passive.output("FSRepopulationFocus")}`); + r.push(`${passive.output("FSRepopulationFocus")}`); if (arc.direction !== 0) { if (arc.FSRepopulationFocus >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -619,20 +616,20 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecMilk > 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's milky cows, improving sales and helping social progress.`); arc.FSRepopulationFocus += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecAge === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's youthful captures, improving sales and helping social progress.`); arc.FSRepopulationFocus += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecInjection === 5) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's milky cows, improving sales and helping social progress.`); arc.FSRepopulationFocus += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSRestart !== "unset") { - r.push(`${_passive.output("FSRestart")}`); + r.push(`${passive.output("FSRestart")}`); if (arc.direction !== 0) { if (arc.FSRestart >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -651,22 +648,22 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecBalls === -1) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's neutered slavegirls, improving sales and helping social progress.`); arc.FSRestart += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecSexEd === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's well trained toys, improving sales and helping social progress.`); arc.FSRestart += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecIntelligence === 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's smarter captures, improving sales and helping social progress.`); arc.FSRestart += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSGenderRadicalist !== "unset") { - r.push(`${_passive.output("FSGenderRadicalist")}`); + r.push(`${passive.output("FSGenderRadicalist")}`); if (arc.direction !== 0) { if (arc.FSGenderRadicalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -685,26 +682,26 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecHormones > 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's hormonally treated slaves, improving sales and helping social progress.`); arc.FSGenderRadicalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } if (V.corp.SpecPussy === 1 && V.corp.SpecDick === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's beautiful futanari, improving sales and helping social progress.`); arc.FSGenderRadicalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecBalls === -1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's clipped buttsluts, improving sales and helping social progress.`); arc.FSGenderRadicalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } if ((V.corp.SpecGender === 2) || (V.seeDicks === 100)) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's feminized slaves, improving sales and helping social progress.`); arc.FSGenderRadicalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSGenderFundamentalist !== "unset") { - r.push(`${_passive.output("FSGenderFundamentalist")}`); + r.push(`${passive.output("FSGenderFundamentalist")}`); if (arc.direction !== 0) { if (arc.FSGenderFundamentalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -722,14 +719,14 @@ App.EndWeek.neighborsDevelopment = function() { if ((V.corp.SpecGender === 1) || (V.seeDicks === 0)) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's enslaved females, improving sales and helping social progress.`); arc.FSGenderFundamentalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSPaternalist !== "unset") { - r.push(`${_passive.output("FSPaternalist")}`); + r.push(`${passive.output("FSPaternalist")}`); if (arc.direction !== 0) { if (arc.FSPaternalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -747,21 +744,21 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecTrust > 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's well-treated companions, improving sales and helping social progress.`); arc.FSPaternalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } if (V.corp.SpecCosmetics === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's meticulously beautified ladies, improving sales and helping social progress.`); arc.FSPaternalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecEducation > 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's educated ladies, improving sales and helping social progress.`); arc.FSPaternalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSDegradationist !== "unset") { - r.push(`${_passive.output("FSDegradationist")}`); + r.push(`${passive.output("FSDegradationist")}`); if (arc.direction !== 0) { if (arc.FSDegradationist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -779,23 +776,23 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecTrust < 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's thoroughly terrified slaves, improving sales and helping social progress.`); arc.FSDegradationist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } if (V.corp.SpecIntelligence === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's idiotic sluts, improving sales and helping social progress.`); arc.FSDegradationist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecAmputee === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's human sex toys, improving sales and helping social progress.`); arc.FSDegradationist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSIntellectualDependency !== "unset") { - r.push(`${_passive.output("FSIntellectualDependency")}`); + r.push(`${passive.output("FSIntellectualDependency")}`); if (arc.direction !== 0) { if (arc.FSIntellectualDependency >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -813,23 +810,22 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecIntelligence === 1) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's idiotic sluts, improving sales and helping social progress.`); arc.FSIntellectualDependency += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecEducation === 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's uneducated slaves, improving sales and helping social progress.`); arc.FSIntellectualDependency += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSSlaveProfessionalism !== "unset") { - r.push(`${_passive.output("FSSlaveProfessionalism")}`); + r.push(`${passive.output("FSSlaveProfessionalism")}`); if (arc.direction !== 0) { if (arc.FSSlaveProfessionalism >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { arc.FSSlaveProfessionalismResearch = 1; - r.push(`Slave Professionalism has reached stability and acceptance there. The arcology has been renamed`); arc.name = App.Neighbor.getUnusedName(setup.ArcologyNamesSlaveProfessionalism); - r.push(`<span class="bold">${arc.name}</span> to mark the occasion.`); + r.push(`Slave Professionalism has reached stability and acceptance there. The arcology has been renamed <span class="bold">${arc.name}</span> to mark the occasion.`); } } else if (arc.FSSlaveProfessionalism < 0) { r.push(`${arc.name} <span class="cyan">has given up</span> on Slave Professionalism.`); @@ -841,38 +837,37 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecIntelligence === 3) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's smarter captures, improving sales and helping social progress.`); arc.FSSlaveProfessionalism += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } if (V.corp.SpecEducation > 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's well educated ladies, improving sales and helping social progress.`); arc.FSSlaveProfessionalism += 2; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecEducation > 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's educated ladies, improving sales and helping social progress.`); arc.FSSlaveProfessionalism += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } if (V.corp.SpecSexEd === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's well trained toys, improving sales and helping social progress.`); arc.FSSlaveProfessionalism += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecAccent === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's linguistically perfect slaves, improving sales and helping social progress.`); arc.FSSlaveProfessionalism += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSBodyPurist !== "unset") { - r.push(`${_passive.output("FSBodyPurist")}`); + r.push(`${passive.output("FSBodyPurist")}`); if (arc.direction !== 0) { if (arc.FSBodyPurist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { - r.push(`Body Purism has reached stability and acceptance there. The arcology has been renamed`); arc.name = App.Neighbor.getUnusedName(setup.ArcologyNamesBodyPurist); - r.push(`<span class="bold">${arc.name}</span> to mark the occasion.`); + r.push(`Body Purism has reached stability and acceptance there. The arcology has been renamed <span class="bold">${arc.name}</span> to mark the occasion.`); } } else if (arc.FSBodyPurist < 0) { r.push(`${arc.name} <span class="cyan">has given up</span> on Body Purism.`); @@ -885,20 +880,19 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAmputee !== 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's implant-free slaves, improving sales and helping social progress.`); arc.FSBodyPurist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } } else if (arc.FSTransformationFetishist !== "unset") { - r.push(`${_passive.output("FSTransformationFetishist")}`); + r.push(`${passive.output("FSTransformationFetishist")}`); if (arc.direction !== 0) { if (arc.FSTransformationFetishist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { arc.FSTransformationFetishistResearch = 1; - r.push(`Transformation Fetishism has reached stability and acceptance there. The arcology has been renamed`); arc.name = App.Neighbor.getUnusedName(setup.ArcologyNamesTransformationFetishist); - r.push(`<span class="bold">${arc.name}</span> to mark the occasion.`); + r.push(`Transformation Fetishism has reached stability and acceptance there. The arcology has been renamed <span class="bold">${arc.name}</span> to mark the occasion.`); } } else if (arc.FSTransformationFetishist < 0) { r.push(`${arc.name} <span class="cyan">has given up</span> on Transformation Fetishism.`); @@ -910,18 +904,18 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecImplants === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's implanted slaves, improving sales and helping social progress.`); arc.FSTransformationFetishist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecImplants === 2) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's absurdly implanted slaves, improving sales and helping social progress.`); arc.FSTransformationFetishist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } } } } if (arc.FSYouthPreferentialist !== "unset") { - r.push(`${_passive.output("FSYouthPreferentialist")}`); + r.push(`${passive.output("FSYouthPreferentialist")}`); if (arc.direction !== 0) { if (arc.FSYouthPreferentialist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -946,12 +940,12 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAge === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's young slaves, improving sales and helping social progress.`); arc.FSYouthPreferentialist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSMaturityPreferentialist !== "unset") { - r.push(`${_passive.output("FSMaturityPreferentialist")}`); + r.push(`${passive.output("FSMaturityPreferentialist")}`); if (arc.direction !== 0) { if (arc.FSMaturityPreferentialist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -969,14 +963,14 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAge === 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's enslaved MILFs, improving sales and helping social progress.`); arc.FSMaturityPreferentialist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSPetiteAdmiration !== "unset") { - r.push(`${_passive.output("FSPetiteAdmiration")}`); + r.push(`${passive.output("FSPetiteAdmiration")}`); if (arc.direction !== 0) { if (arc.FSPetiteAdmiration >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -994,16 +988,16 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecHeight === 1) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's minuscule slaves, improving sales and helping social progress.`); arc.FSPetiteAdmiration += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecHeight === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's shorter captures, improving sales and helping social progress.`); arc.FSPetiteAdmiration += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSStatuesqueGlorification !== "unset") { - r.push(`${_passive.output("FSStatuesqueGlorification")}`); + r.push(`${passive.output("FSStatuesqueGlorification")}`); if (arc.direction !== 0) { if (arc.FSStatuesqueGlorification >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1021,18 +1015,18 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecHeight === 5) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's gigantic slaves, improving sales and helping social progress.`); arc.FSStatuesqueGlorification += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecHeight === 4) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's taller captures, improving sales and helping social progress.`); arc.FSStatuesqueGlorification += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSSlimnessEnthusiast !== "unset") { - r.push(`${_passive.output("FSSlimnessEnthusiast")}`); + r.push(`${passive.output("FSSlimnessEnthusiast")}`); if (arc.direction !== 0) { if (arc.FSSlimnessEnthusiast >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1052,13 +1046,13 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecWeight < 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's trim slaves, improving sales and helping social progress.`); arc.FSSlimnessEnthusiast += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } } else if (arc.FSAssetExpansionist !== "unset") { - r.push(`${_passive.output("FSAssetExpansionist")}`); + r.push(`${passive.output("FSAssetExpansionist")}`); if (arc.direction !== 0) { if (arc.FSAssetExpansionist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1077,22 +1071,22 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SPecInjection === 4) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's world-class tits and ass, improving sales and helping social progress.`); arc.FSAssetExpansionist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecInjection === 5) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's hugely endowed cows, improving sales and helping social progress.`); arc.FSAssetExpansionist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SPecInjection === 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's stacked slaves, improving sales and helping social progress.`); arc.FSAssetExpansionist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSPastoralist !== "unset") { - r.push(`${_passive.output("FSPastoralist")}`); + r.push(`${passive.output("FSPastoralist")}`); if (arc.direction !== 0) { if (arc.FSPastoralist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1110,16 +1104,16 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecInjection === 5) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's world-class milk producers, improving sales and helping social progress.`); arc.FSPastoralist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecMilk > 0) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's world-class milk producers, improving sales and helping social progress.`); arc.FSPastoralist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } } } } else if (arc.FSCummunism !== "unset") { - r.push(`${_passive.output("FSCummunism")}`); + r.push(`${passive.output("FSCummunism")}`); if (arc.direction !== 0) { if (arc.FSCummunism >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1137,22 +1131,22 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecInjection === 5) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's world-class cum producers, improving sales and helping social progress.`); arc.FSCummunism += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecHormones === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's masculinized slaves, improving sales and helping social progress.`); arc.FSCummunism += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecDick === 1 && V.corp.SpecBalls === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's slaves standard dicks and balls, improving sales and helping social progress.`); arc.FSCummunism += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSPhysicalIdealist !== "unset") { - r.push(`${_passive.output("FSPhysicalIdealist")}`); + r.push(`${passive.output("FSPhysicalIdealist")}`); if (arc.direction !== 0) { if (arc.FSPhysicalIdealist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1170,20 +1164,20 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecMuscle === 5) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's ripped chicks, improving sales and helping social progress.`); arc.FSPhysicalIdealist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecMuscle === 4) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's toned ladies, improving sales and helping social progress.`); arc.FSPhysicalIdealist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } else if (V.corp.SpecHeight > 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's tall ladies, improving sales and helping social progress.`); arc.FSPhysicalIdealist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSHedonisticDecadence !== "unset") { - r.push(`${_passive.output("FSHedonisticDecadence")}`); + r.push(`${passive.output("FSHedonisticDecadence")}`); if (arc.direction !== 0) { if (arc.FSHedonisticDecadence >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1202,18 +1196,18 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecTrust > 3) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's well kept, happy slaves, improving sales and helping social progress.`); arc.FSHedonisticDecadence += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecSexEd === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's skilled slaves, improving sales and helping social progress.`); arc.FSHedonisticDecadence += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSIncestFetishist !== "unset") { - r.push(`${_passive.output("FSIncestFetishist")}`); + r.push(`${passive.output("FSIncestFetishist")}`); if (arc.direction !== 0) { if (arc.FSIncestFetishist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1231,14 +1225,14 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAge === 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's motherly slaves, especially those that look like peoples mothers, improving sales and helping social progress.`); arc.FSIncestFetishist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSChattelReligionist !== "unset") { - r.push(`${_passive.output("FSChattelReligionist")}`); + r.push(`${passive.output("FSChattelReligionist")}`); if (arc.direction !== 0) { if (arc.FSChattelReligionist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1256,18 +1250,18 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecSexEd === 2) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's holy sex slaves, improving sales and helping social progress.`); arc.FSChattelReligionist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecSexEd === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's aspiring sexual acolytes, improving sales and helping social progress.`); arc.FSChattelReligionist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } if (arc.FSRomanRevivalist !== "unset") { - r.push(`${_passive.output("FSRomanRevivalist")}`); + r.push(`${passive.output("FSRomanRevivalist")}`); if (arc.direction !== 0) { if (arc.FSRomanRevivalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1285,12 +1279,12 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecEducation > 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's properly educated slaves, improving sales and helping social progress.`); arc.FSRomanRevivalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSNeoImperialist !== "unset") { - r.push(`${_passive.output("FSNeoImperialist")}`); + r.push(`${passive.output("FSNeoImperialist")}`); if (arc.direction !== 0) { if (arc.FSNeoImperialist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1308,12 +1302,12 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecEducation > 0) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's properly educated slaves, improving sales and helping advocate for a hierarchical Imperial society.`); arc.FSNeoImperialist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSAztecRevivalist !== "unset") { - r.push(`${_passive.output("FSAztecRevivalist")}`); + r.push(`${passive.output("FSAztecRevivalist")}`); if (arc.direction !== 0) { if (arc.FSAztecRevivalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1331,12 +1325,12 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAccent === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's lovely mix of slave accents, improving sales and helping social progress.`); arc.FSAztecRevivalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSEgyptianRevivalist !== "unset") { - r.push(`${_passive.output("FSEgyptianRevivalist")}`); + r.push(`${passive.output("FSEgyptianRevivalist")}`); if (arc.direction !== 0) { if (arc.FSEgyptianRevivalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1354,12 +1348,12 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAccent === 1) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's lovely mix of slave accents, improving sales and helping social progress.`); arc.FSEgyptianRevivalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSEdoRevivalist !== "unset") { - r.push(`${_passive.output("FSEdoRevivalist")}`); + r.push(`${passive.output("FSEdoRevivalist")}`); if (arc.direction !== 0) { if (arc.FSEdoRevivalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1377,12 +1371,12 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecAccent === 2) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's linguistically perfect slaves, improving sales and helping social progress.`); arc.FSEdoRevivalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSArabianRevivalist !== "unset") { - r.push(`${_passive.output("FSArabianRevivalist")}`); + r.push(`${passive.output("FSArabianRevivalist")}`); if (arc.direction !== 0) { if (arc.FSArabianRevivalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1400,16 +1394,16 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecDevotion === 5) { r.push(`It's an <span class="lightgreen">excellent market</span> for your corporation's harem-ready devotees, improving sales and helping social progress.`); arc.FSArabianRevivalist += 2; - App.Corporate.earnRevenue(_corpBonus * 2, 'foreign'); + App.Corporate.earnRevenue(corpBonus * 2, 'foreign'); } else if (V.corp.SpecDevotion === 4) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's properly broken girls, improving sales and helping social progress.`); arc.FSArabianRevivalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } } else if (arc.FSChineseRevivalist !== "unset") { - r.push(`${_passive.output("FSChineseRevivalist")}`); + r.push(`${passive.output("FSChineseRevivalist")}`); if (arc.direction !== 0) { if (arc.FSChineseRevivalist >= V.FSLockinLevel) { if ((arc.name.indexOf("Arcology") !== -1) && (random(0, 2) === 0)) { @@ -1427,7 +1421,7 @@ App.EndWeek.neighborsDevelopment = function() { if (V.corp.SpecIntelligence === 3) { r.push(`It's a <span class="lightgreen">good market</span> for your corporation's intelligent Head Girl prospects, improving sales and helping social progress.`); arc.FSChineseRevivalist += 1; - App.Corporate.earnRevenue(_corpBonus, 'foreign'); + App.Corporate.earnRevenue(corpBonus, 'foreign'); } } } @@ -1451,485 +1445,485 @@ App.EndWeek.neighborsDevelopment = function() { if (arc2.direction !== arc.direction) { if (arc2.influenceTarget === arc.direction) { arc2.influenceBonus = Math.clamp(arc2.influenceBonus, 0, V.FSLockinLevel); - let _appliedInfluenceBonus = Math.trunc(arc2.influenceBonus * 0.1); - arc2.influenceBonus -= _appliedInfluenceBonus * 2; + let appliedInfluenceBonus = Math.trunc(arc2.influenceBonus * 0.1); + arc2.influenceBonus -= appliedInfluenceBonus * 2; if (V.policies.culturalOpenness === 1) { if ((arc.direction === 0) || (arc2.direction === 0)) { - _appliedInfluenceBonus *= 2; + appliedInfluenceBonus *= 2; } } else if (V.policies.culturalOpenness === -1) { if ((arc.direction === 0) || (arc2.direction === 0)) { - _appliedInfluenceBonus /= 2; + appliedInfluenceBonus /= 2; } } if (arc.ownership >= 100) { - _appliedInfluenceBonus /= 2; + appliedInfluenceBonus /= 2; } desc = []; - let _alignment = 0; + let alignment = 0; if (arc2.FSSubjugationist !== "unset" && arc2.FSSubjugationist > 60) { if (arc.FSSubjugationist !== "unset") { if (arc2.FSSubjugationistRace === arc.FSSubjugationistRace) { - arc.FSSubjugationist += Math.trunc((arc2.FSSubjugationist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSubjugationist += Math.trunc((arc2.FSSubjugationist - 60) / 4) + appliedInfluenceBonus; if (arc.FSSubjugationist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its racially aligned Subjugationism"); } else { - arc.FSSubjugationist -= Math.trunc((arc2.FSSubjugationist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSubjugationist -= Math.trunc((arc2.FSSubjugationist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Subjugationism"); } } else if ((arc.FSSupremacist !== "unset") && (arc2.FSSubjugationistRace === arc.FSSupremacistRace)) { - arc.FSSupremacist -= Math.trunc((arc2.FSSubjugationist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSupremacist -= Math.trunc((arc2.FSSubjugationist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its opposing Supremacism"); } } if (arc2.FSSupremacist !== "unset" && arc2.FSSupremacist > 60) { if (arc.FSSupremacist !== "unset") { if (arc2.FSSupremacistRace === arc.FSSupremacistRace) { - arc.FSSupremacist += Math.trunc((arc2.FSSupremacist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSupremacist += Math.trunc((arc2.FSSupremacist - 60) / 4) + appliedInfluenceBonus; if (arc.FSSupremacist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its racially aligned Supremacism"); } else { - arc.FSSupremacist -= Math.trunc((arc2.FSSupremacist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSupremacist -= Math.trunc((arc2.FSSupremacist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Supremacism"); } } else if ((arc.FSSubjugationist !== "unset") && (arc2.FSSupremacistRace === arc.FSSubjugationistRace)) { - arc.FSSubjugationist -= Math.trunc((arc2.FSSupremacist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSubjugationist -= Math.trunc((arc2.FSSupremacist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its opposing Subjugationism"); } } if (arc2.FSRepopulationFocus !== "unset" && arc2.FSRepopulationFocus > 60) { if (arc.FSRepopulationFocus !== "unset") { - arc.FSRepopulationFocus += Math.trunc((arc2.FSRepopulationFocus - 60) / 4) + _appliedInfluenceBonus; + arc.FSRepopulationFocus += Math.trunc((arc2.FSRepopulationFocus - 60) / 4) + appliedInfluenceBonus; if (arc.FSRepopulationFocus > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Repopulationism"); } else if (arc.FSRestart !== "unset") { - arc.FSRestart -= Math.trunc((arc2.FSRepopulationFocus - 60) / 4) + _appliedInfluenceBonus; + arc.FSRestart -= Math.trunc((arc2.FSRepopulationFocus - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Eugenics"); } } else if (arc2.FSRestart !== "unset" && arc2.FSRestart > 60) { if (arc.FSRestart !== "unset") { - arc.FSRestart += Math.trunc((arc2.FSRestart - 60) / 4) + _appliedInfluenceBonus; + arc.FSRestart += Math.trunc((arc2.FSRestart - 60) / 4) + appliedInfluenceBonus; if (arc.FSRestart > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Eugenics"); } else if (arc.FSRepopulationFocus !== "unset") { - arc.FSRepopulationFocus -= Math.trunc((arc2.FSRestart - 60) / 4) + _appliedInfluenceBonus; + arc.FSRepopulationFocus -= Math.trunc((arc2.FSRestart - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Repopulation Efforts"); } } if (arc2.FSGenderRadicalist !== "unset" && arc2.FSGenderRadicalist > 60) { if (arc.FSGenderRadicalist !== "unset") { - arc.FSGenderRadicalist += Math.trunc((arc2.FSGenderRadicalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSGenderRadicalist += Math.trunc((arc2.FSGenderRadicalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSGenderRadicalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Gender Radicalism"); } else if (arc.FSGenderFundamentalist !== "unset") { - arc.FSGenderFundamentalist -= Math.trunc((arc2.FSGenderRadicalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSGenderFundamentalist -= Math.trunc((arc2.FSGenderRadicalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Gender Fundamentalism"); } } else if (arc2.FSGenderFundamentalist !== "unset" && arc2.FSGenderFundamentalist > 60) { if (arc.FSGenderFundamentalist !== "unset") { - arc.FSGenderFundamentalist += Math.trunc((arc2.FSGenderFundamentalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSGenderFundamentalist += Math.trunc((arc2.FSGenderFundamentalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSGenderFundamentalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Gender Fundamentalism"); } else if (arc.FSGenderRadicalist !== "unset") { - arc.FSGenderRadicalist -= Math.trunc((arc2.FSGenderFundamentalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSGenderRadicalist -= Math.trunc((arc2.FSGenderFundamentalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Gender Radicalism"); } } if (arc2.FSPaternalist !== "unset" && arc2.FSPaternalist > 60) { if (arc.FSPaternalist !== "unset") { - arc.FSPaternalist += Math.trunc((arc2.FSPaternalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSPaternalist += Math.trunc((arc2.FSPaternalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSPaternalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Paternalism"); } else if (arc.FSDegradationist !== "unset") { - arc.FSDegradationist -= Math.trunc((arc2.FSPaternalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSDegradationist -= Math.trunc((arc2.FSPaternalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Degradationism"); } } else if (arc2.FSDegradationist !== "unset" && arc2.FSDegradationist > 60) { if (arc.FSDegradationist !== "unset") { - arc.FSDegradationist += Math.trunc((arc2.FSDegradationist - 60) / 4) + _appliedInfluenceBonus; + arc.FSDegradationist += Math.trunc((arc2.FSDegradationist - 60) / 4) + appliedInfluenceBonus; if (arc.FSDegradationist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Degradationism"); } else if (arc.FSPaternalist !== "unset") { - arc.FSPaternalist -= Math.trunc((arc2.FSDegradationist - 60) / 4) + _appliedInfluenceBonus; + arc.FSPaternalist -= Math.trunc((arc2.FSDegradationist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Paternalism"); } } if (arc2.FSIntellectualDependency !== "unset" && arc2.FSIntellectualDependency > 60) { if (arc.FSIntellectualDependency !== "unset") { - arc.FSIntellectualDependency += Math.trunc((arc2.FSIntellectualDependency - 60) / 4) + _appliedInfluenceBonus; + arc.FSIntellectualDependency += Math.trunc((arc2.FSIntellectualDependency - 60) / 4) + appliedInfluenceBonus; if (arc.FSIntellectualDependency > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Intellectual Dependency"); } else if (arc.FSSlaveProfessionalism !== "unset") { - arc.FSSlaveProfessionalism -= Math.trunc((arc2.FSIntellectualDependency - 60) / 4) + _appliedInfluenceBonus; + arc.FSSlaveProfessionalism -= Math.trunc((arc2.FSIntellectualDependency - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Slave Professionalism"); } } else if (arc2.FSSlaveProfessionalism !== "unset" && arc2.FSSlaveProfessionalism > 60) { if (arc.FSSlaveProfessionalism !== "unset") { - arc.FSSlaveProfessionalism += Math.trunc((arc2.FSSlaveProfessionalism - 60) / 4) + _appliedInfluenceBonus; + arc.FSSlaveProfessionalism += Math.trunc((arc2.FSSlaveProfessionalism - 60) / 4) + appliedInfluenceBonus; if (arc.FSSlaveProfessionalism > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Slave Professionalism"); } else if (arc.FSIntellectualDependency !== "unset") { - arc.FSIntellectualDependency -= Math.trunc((arc2.FSSlaveProfessionalism - 60) / 4) + _appliedInfluenceBonus; + arc.FSIntellectualDependency -= Math.trunc((arc2.FSSlaveProfessionalism - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Intellectual Dependency"); } } if (arc2.FSBodyPurist !== "unset" && arc2.FSBodyPurist > 60) { if (arc.FSBodyPurist !== "unset") { - arc.FSBodyPurist += Math.trunc((arc2.FSBodyPurist - 60) / 4) + _appliedInfluenceBonus; + arc.FSBodyPurist += Math.trunc((arc2.FSBodyPurist - 60) / 4) + appliedInfluenceBonus; if (arc.FSBodyPurist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Body Purism"); } else if (arc.FSTransformationFetishist !== "unset") { - arc.FSTransformationFetishist -= Math.trunc((arc2.FSBodyPurist - 60) / 4) + _appliedInfluenceBonus; + arc.FSTransformationFetishist -= Math.trunc((arc2.FSBodyPurist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Transformation Fetishism"); } } else if (arc2.FSTransformationFetishist !== "unset" && arc2.FSTransformationFetishist > 60) { if (arc.FSTransformationFetishist !== "unset") { - arc.FSTransformationFetishist += Math.trunc((arc2.FSTransformationFetishist - 60) / 4) + _appliedInfluenceBonus; + arc.FSTransformationFetishist += Math.trunc((arc2.FSTransformationFetishist - 60) / 4) + appliedInfluenceBonus; if (arc.FSTransformationFetishist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Transformation Fetishism"); } else if (arc.FSBodyPurist !== "unset") { - arc.FSBodyPurist -= Math.trunc((arc2.FSTransformationFetishist - 60) / 4) + _appliedInfluenceBonus; + arc.FSBodyPurist -= Math.trunc((arc2.FSTransformationFetishist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Body Purism"); } } if (arc2.FSYouthPreferentialist !== "unset" && arc2.FSYouthPreferentialist > 60) { if (arc.FSYouthPreferentialist !== "unset") { - arc.FSYouthPreferentialist += Math.trunc((arc2.FSYouthPreferentialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSYouthPreferentialist += Math.trunc((arc2.FSYouthPreferentialist - 60) / 4) + appliedInfluenceBonus; if (arc.FSYouthPreferentialist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Youth Preferentialism"); } else if (arc.FSMaturityPreferentialist !== "unset") { - arc.FSMaturityPreferentialist -= Math.trunc((arc2.FSYouthPreferentialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSMaturityPreferentialist -= Math.trunc((arc2.FSYouthPreferentialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Maturity Preferentialism"); } } else if (arc2.FSMaturityPreferentialist !== "unset" && arc2.FSMaturityPreferentialist > 60) { if (arc.FSMaturityPreferentialist !== "unset") { - arc.FSMaturityPreferentialist += Math.trunc((arc2.FSMaturityPreferentialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSMaturityPreferentialist += Math.trunc((arc2.FSMaturityPreferentialist - 60) / 4) + appliedInfluenceBonus; if (arc.FSMaturityPreferentialist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Maturity Preferentialism"); } else if (arc.FSYouthPreferentialist !== "unset") { - arc.FSYouthPreferentialist -= Math.trunc((arc2.FSMaturityPreferentialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSYouthPreferentialist -= Math.trunc((arc2.FSMaturityPreferentialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Youth Preferentialism"); } } if (arc2.FSPetiteAdmiration !== "unset" && arc2.FSPetiteAdmiration > 60) { if (arc.FSPetiteAdmiration !== "unset") { - arc.FSPetiteAdmiration += Math.trunc((arc2.FSPetiteAdmiration - 60) / 4) + _appliedInfluenceBonus; + arc.FSPetiteAdmiration += Math.trunc((arc2.FSPetiteAdmiration - 60) / 4) + appliedInfluenceBonus; if (arc.FSPetiteAdmiration > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Petite Admiration"); } else if (arc.FSStatuesqueGlorification !== "unset") { - arc.FSStatuesqueGlorification -= Math.trunc((arc2.FSPetiteAdmiration - 60) / 4) + _appliedInfluenceBonus; + arc.FSStatuesqueGlorification -= Math.trunc((arc2.FSPetiteAdmiration - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Statuesque Glorification"); } } else if (arc2.FSStatuesqueGlorification !== "unset" && arc2.FSStatuesqueGlorification > 60) { if (arc.FSStatuesqueGlorification !== "unset") { - arc.FSStatuesqueGlorification += Math.trunc((arc2.FSStatuesqueGlorification - 60) / 4) + _appliedInfluenceBonus; + arc.FSStatuesqueGlorification += Math.trunc((arc2.FSStatuesqueGlorification - 60) / 4) + appliedInfluenceBonus; if (arc.FSStatuesqueGlorification > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Statuesque Glorification"); } else if (arc.FSPetiteAdmiration !== "unset") { - arc.FSPetiteAdmiration -= Math.trunc((arc2.FSStatuesqueGlorification - 60) / 4) + _appliedInfluenceBonus; + arc.FSPetiteAdmiration -= Math.trunc((arc2.FSStatuesqueGlorification - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Petite Admiration"); } } if (arc2.FSSlimnessEnthusiast !== "unset" && arc2.FSSlimnessEnthusiast > 60) { if (arc.FSSlimnessEnthusiast !== "unset") { - arc.FSSlimnessEnthusiast += Math.trunc((arc2.FSSlimnessEnthusiast - 60) / 4) + _appliedInfluenceBonus; + arc.FSSlimnessEnthusiast += Math.trunc((arc2.FSSlimnessEnthusiast - 60) / 4) + appliedInfluenceBonus; if (arc.FSSlimnessEnthusiast > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Slimness Enthusiasm"); } else if (arc.FSAssetExpansionist !== "unset") { - arc.FSAssetExpansionist -= Math.trunc((arc2.FSSlimnessEnthusiast - 60) / 4) + _appliedInfluenceBonus; + arc.FSAssetExpansionist -= Math.trunc((arc2.FSSlimnessEnthusiast - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Asset Expansionism"); } } else if (arc2.FSAssetExpansionist !== "unset" && arc2.FSAssetExpansionist > 60) { if (arc.FSAssetExpansionist !== "unset") { - arc.FSAssetExpansionist += Math.trunc((arc2.FSAssetExpansionist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAssetExpansionist += Math.trunc((arc2.FSAssetExpansionist - 60) / 4) + appliedInfluenceBonus; if (arc.FSAssetExpansionist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Asset Expansionism"); } else if (arc.FSSlimnessEnthusiast !== "unset") { - arc.FSSlimnessEnthusiast -= Math.trunc((arc2.FSAssetExpansionist - 60) / 4) + _appliedInfluenceBonus; + arc.FSSlimnessEnthusiast -= Math.trunc((arc2.FSAssetExpansionist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Slimness Enthusiasm"); } } if (arc2.FSPastoralist !== "unset" && arc2.FSPastoralist > 60) { if (arc.FSPastoralist !== "unset") { - arc.FSPastoralist += Math.trunc((arc2.FSPastoralist - 60) / 4) + _appliedInfluenceBonus; + arc.FSPastoralist += Math.trunc((arc2.FSPastoralist - 60) / 4) + appliedInfluenceBonus; if (arc.FSPastoralist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Pastoralism"); } else if (arc.FSCummunism !== "unset") { - arc.FSCummunism -= Math.trunc((arc2.FSPastoralist - 60) / 4) + _appliedInfluenceBonus; + arc.FSCummunism -= Math.trunc((arc2.FSPastoralist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Cummunism"); } } else if (arc2.FSCummunism !== "unset" && arc2.FSCummunism > 60) { if (arc.FSCummunism !== "unset") { - arc.FSCummunism += Math.trunc((arc2.FSCummunism - 60) / 4) + _appliedInfluenceBonus; + arc.FSCummunism += Math.trunc((arc2.FSCummunism - 60) / 4) + appliedInfluenceBonus; if (arc.FSCummunism > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Cummunism"); } else if (arc.FSPastoralist !== "unset") { - arc.FSPastoralist -= Math.trunc((arc2.FSCummunism - 60) / 4) + _appliedInfluenceBonus; + arc.FSPastoralist -= Math.trunc((arc2.FSCummunism - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Pastoralism"); } } if (arc2.FSPhysicalIdealist !== "unset" && arc2.FSPhysicalIdealist > 60) { if (arc.FSPhysicalIdealist !== "unset") { - arc.FSPhysicalIdealist += Math.trunc((arc2.FSPhysicalIdealist - 60) / 4) + _appliedInfluenceBonus; + arc.FSPhysicalIdealist += Math.trunc((arc2.FSPhysicalIdealist - 60) / 4) + appliedInfluenceBonus; if (arc.FSPhysicalIdealist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Physical Idealism"); } else if (arc.FSHedonisticDecadence !== "unset") { - arc.FSHedonisticDecadence -= Math.trunc((arc2.FSPhysicalIdealist - 60) / 4) + _appliedInfluenceBonus; + arc.FSHedonisticDecadence -= Math.trunc((arc2.FSPhysicalIdealist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Hedonism"); } } else if (arc2.FSHedonisticDecadence !== "unset" && arc2.FSHedonisticDecadence > 60) { if (arc.FSHedonisticDecadence !== "unset") { - arc.FSHedonisticDecadence += Math.trunc((arc2.FSHedonisticDecadence - 60) / 4) + _appliedInfluenceBonus; + arc.FSHedonisticDecadence += Math.trunc((arc2.FSHedonisticDecadence - 60) / 4) + appliedInfluenceBonus; if (arc.FSHedonisticDecadence > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Hedonism"); } else if (arc.FSPhysicalIdealist !== "unset") { - arc.FSPhysicalIdealist -= Math.trunc((arc2.FSHedonisticDecadence - 60) / 4) + _appliedInfluenceBonus; + arc.FSPhysicalIdealist -= Math.trunc((arc2.FSHedonisticDecadence - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its Physical Idealism"); } } if (arc2.FSIncestFetishist !== "unset" && arc2.FSIncestFetishist > 60) { if (arc.FSIncestFetishist !== "unset") { - arc.FSIncestFetishist += Math.trunc((arc2.FSIncestFetishist - 60) / 4) + _appliedInfluenceBonus; + arc.FSIncestFetishist += Math.trunc((arc2.FSIncestFetishist - 60) / 4) + appliedInfluenceBonus; if (arc.FSIncestFetishist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Incest Fetishism"); } } if (arc2.FSChattelReligionist !== "unset" && arc2.FSChattelReligionist > 60) { if (arc.FSChattelReligionist !== "unset") { - arc.FSChattelReligionist += Math.trunc((arc2.FSChattelReligionist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChattelReligionist += Math.trunc((arc2.FSChattelReligionist - 60) / 4) + appliedInfluenceBonus; if (arc.FSChattelReligionist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Chattel Religionism"); } } if (arc2.FSRomanRevivalist !== "unset" && arc2.FSRomanRevivalist > 60) { if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist += Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist += Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSRomanRevivalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Roman Revivalism"); } else if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Imperialism"); } else if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist -= Math.trunc((arc2.FSRomanRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } else if (arc2.FSAztecRevivalist !== "unset" && arc2.FSAztecRevivalist > 60) { if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist += Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist += Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSAztecRevivalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Aztec Revivalism"); } else if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Imperialism"); } else if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist -= Math.trunc((arc2.FSAztecRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } else if (arc2.FSEgyptianRevivalist !== "unset" && arc2.FSEgyptianRevivalist > 60) { if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist += Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist += Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSEgyptianRevivalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Egyptian Revivalism"); } else if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Imperialism"); } else if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist -= Math.trunc((arc2.FSEgyptianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } else if (arc2.FSEdoRevivalist !== "unset" && arc2.FSEdoRevivalist > 60) { if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist += Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist += Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSEdoRevivalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Edo Revivalism"); } else if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Imperialism"); } else if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist -= Math.trunc((arc2.FSEdoRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } else if (arc2.FSArabianRevivalist !== "unset" && arc2.FSArabianRevivalist > 60) { if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist += Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist += Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSArabianRevivalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Arabian Revivalism"); } else if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Imperialism"); } else if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist -= Math.trunc((arc2.FSArabianRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } else if (arc2.FSChineseRevivalist !== "unset" && arc2.FSChineseRevivalist > 60) { if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist += Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist += Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; if (arc.FSChineseRevivalist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Chinese Revivalism"); } else if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Imperialism"); } else if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist -= Math.trunc((arc2.FSChineseRevivalist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } else if (arc2.FSNeoImperialist !== "unset" && arc2.FSNeoImperialist > 60) { if (arc.FSNeoImperialist !== "unset") { - arc.FSNeoImperialist += Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSNeoImperialist += Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; if (arc.FSNeoImperialist > V.FSLockinLevel) { - _alignment += 1; + alignment += 1; } desc.push("helping to advance its Neo-Imperialism"); } else if (arc.FSEgyptianRevivalist !== "unset") { - arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEgyptianRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSChineseRevivalist !== "unset") { - arc.FSChineseRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSChineseRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSEdoRevivalist !== "unset") { - arc.FSEdoRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSEdoRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSArabianRevivalist !== "unset") { - arc.FSArabianRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSArabianRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSRomanRevivalist !== "unset") { - arc.FSRomanRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSRomanRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } else if (arc.FSAztecRevivalist !== "unset") { - arc.FSAztecRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + _appliedInfluenceBonus; + arc.FSAztecRevivalist -= Math.trunc((arc2.FSNeoImperialist - 60) / 4) + appliedInfluenceBonus; desc.push("attacking its incompatible Revivalism"); } } @@ -1937,29 +1931,22 @@ App.EndWeek.neighborsDevelopment = function() { if (desc.length === 0) { r.push(`<span class="bold">${arc2.name}</span> attempts to influence it, but has no significant impacts.`); } else if (desc.length > 2) { - r.push(`<span class="bold">${arc2.name}</span>'s mature culture influences ${arc.name}, ${desc[0]},`); - for (let _k = 1; _k < desc.length; _k++) { - if (_k < desc.length - 1) { - r.push(`${desc[_k]},`); - } else { - r.push(`and ${desc[_k]}.`); - } - } + r.push(`<span class="bold">${arc2.name}</span>'s mature culture influences ${arc.name}, ${desc.slice(0, desc.length - 1).join(', ') + ", and " + desc.slice(-1)}.`); } else if (desc.length === 2) { r.push(`<span class="bold">${arc2.name}</span>'s culture influences ${arc.name}'s ${desc[0]} and ${desc[1]}.`); } else { r.push(`<span class="bold">${arc2.name}</span>'s culture is beginning to influence ${arc.name}'s ${desc[0]}.`); } - if (_appliedInfluenceBonus > 0) { - if (_appliedInfluenceBonus < 5) { + if (appliedInfluenceBonus > 0) { + if (appliedInfluenceBonus < 5) { r.push(`${arc2.name} is societally advanced, giving it extra influence.`); } else { r.push(`${arc2.name} is societally fanatical, lending it great influence.`); } } if (arc.ownership >= 100) { - if (_appliedInfluenceBonus > 0) { + if (appliedInfluenceBonus > 0) { r.push(`However,`); } r.push(`${arc.name} is under completely unified control, making it resistant to change.`); @@ -1969,7 +1956,7 @@ App.EndWeek.neighborsDevelopment = function() { if (desc.length === 0) { r.push(`<span class="bold">${arc2.name}</span> is not satisfied with the impact its directed influence is having, and withdraws it with the intention of targeting it elsewhere.`); arc2.influenceTarget = -1; - } else if (_alignment >= 4) { + } else if (alignment >= 4) { r.push(`<span class="bold">${arc2.name}</span> is satisfied that its influence has brought ${arc.name} into alignment, and withdraws its direct influence with the intention of targeting it elsewhere.`); arc2.influenceTarget = -1; } @@ -1989,12 +1976,12 @@ App.EndWeek.neighborsDevelopment = function() { arc.ownership = Math.clamp(arc.ownership, 0, 100); arc.PCminority = Math.clamp(arc.PCminority, 0, 100); arc.minority = Math.clamp(arc.minority, 0, 100); - _owned = arc.ownership + arc.PCminority + arc.minority; + owned = arc.ownership + arc.PCminority + arc.minority; if (arc.government !== "your agent" && arc.government !== "your trustees" && arc.rival !== 1) { - if (_owned < 10) { + if (owned < 10) { arc.ownership += 10; /* Someone needs to own something */ - } else if (_owned > 100) { + } else if (owned > 100) { arc.minority = Math.clamp(100 - arc.ownership - arc.PCminority, 0, 100); if (arc.ownership + arc.PCminority > 100) { arc.ownership = 100 - arc.PCminority; @@ -2008,19 +1995,19 @@ App.EndWeek.neighborsDevelopment = function() { /* PEACEKEEPERS */ if (V.plot && V.peacekeepers !== 0) { - let _prisoners; + let prisoners; let r = []; if (V.peacekeepers.strength >= 50) { - _prisoners = Math.trunc(V.peacekeepers.attitude / 10) + random(0, 10); + prisoners = Math.trunc(V.peacekeepers.attitude / 10) + random(0, 10); r.push(`General ${V.peacekeepers.generalName}'s little empire near the arcology`); if (V.peacekeepers.attitude >= 100) { - r.push(`offers ${_prisoners} menial slaves as tribute; having the area as an avowed client state <span class="green">improves your reputation.</span>`); + r.push(`offers ${prisoners} menial slaves as tribute; having the area as an avowed client state <span class="green">improves your reputation.</span>`); V.peacekeepers.attitude = 100; repX(100, "peacekeepers"); } else { - r.push(`delivers ${_prisoners} menial slaves to you in payment for your past support.`); + r.push(`delivers ${prisoners} menial slaves to you in payment for your past support.`); } - V.menials += _prisoners; + V.menials += prisoners; } else if (V.peacekeepers.strength < 0) { r.push(`<span class="yellow">The peacekeeping force led by General ${V.peacekeepers.generalName} in the troubled area near the Free City has been withdrawn.</span>`); if (V.peacekeepers.undermining) { @@ -2093,7 +2080,7 @@ App.EndWeek.neighborsDevelopment = function() { } r.push(`societal development.`); - const _validFSes = FutureSocieties.validAdoptions(i); + const validFSes = FutureSocieties.validAdoptions(i); fsAdoption(); @@ -2418,7 +2405,7 @@ App.EndWeek.neighborsDevelopment = function() { } else { // RIVAL ADOPTION desc = "Its owner is"; if (V.arcologies[0].FSSubjugationist > random(5, 60)) { - if (_validFSes.includes("FSSupremacist") && (arc.FSSubjugationist === "unset") || (arc.FSSubjugationistRace !== V.arcologies[0].FSSubjugationistRace)) { + if (validFSes.includes("FSSupremacist") && (arc.FSSubjugationist === "unset") || (arc.FSSubjugationistRace !== V.arcologies[0].FSSubjugationistRace)) { r.push(`${desc} preoccupied by belief in the superiority of the ${V.arcologies[0].FSSubjugationistRace} race, leading the arcology to <span class="yellow">adopt ${V.arcologies[0].FSSubjugationistRace} Supremacy.</span>`); arc.FSSupremacist = 5; arc.FSSupremacistRace = V.arcologies[0].FSSubjugationistRace; @@ -2426,7 +2413,7 @@ App.EndWeek.neighborsDevelopment = function() { } } if (V.arcologies[0].FSSupremacist > random(5, 60)) { - if ((_validFSes.includes("FSSubjugationist") && (arc.FSSupremacist === "unset") || (arc.FSSupremacistRace !== V.arcologies[0].FSSupremacistRace))) { + if ((validFSes.includes("FSSubjugationist") && (arc.FSSupremacist === "unset") || (arc.FSSupremacistRace !== V.arcologies[0].FSSupremacistRace))) { r.push(`${desc} preoccupied by a racial animus towards ${V.arcologies[0].FSSupremacistRace} people, leading the arcology to <span class="yellow">adopt ${V.arcologies[0].FSSupremacistRace} Subjugation.</span>`); arc.FSSubjugationist = 5; arc.FSSubjugationistRace = V.arcologies[0].FSSupremacistRace; @@ -2434,167 +2421,167 @@ App.EndWeek.neighborsDevelopment = function() { } } if (V.arcologies[0].FSRestart > random(5, 60)) { - if (_validFSes.includes("FSRepopulationFocus")) { + if (validFSes.includes("FSRepopulationFocus")) { r.push(`${desc} obsessed with breeding a new society, leading the arcology to <span class="yellow">adopt Repopulationism.</span>`); arc.FSRepopulationFocus = 5; return; } } else if (V.arcologies[0].FSRepopulationFocus > random(5, 60)) { - if (_validFSes.includes("FSRestart")) { + if (validFSes.includes("FSRestart")) { r.push(`${desc} obsessed with creating a new, better society, leading the arcology to <span class="yellow">adopt Eugenics.</span>`); arc.FSRestart = 5; return; } } if (V.arcologies[0].FSGenderRadicalist > random(5, 60)) { - if (_validFSes.includes("FSGenderFundamentalist")) { + if (validFSes.includes("FSGenderFundamentalist")) { r.push(`${desc} enthusiastic about knocking slaves up, leading the arcology to <span class="yellow">adopt Gender Fundamentalism.</span>`); arc.FSGenderFundamentalist = 5; return; } } else if (V.arcologies[0].FSGenderFundamentalist > random(5, 60)) { - if (_validFSes.includes("FSGenderRadicalist")) { + if (validFSes.includes("FSGenderRadicalist")) { r.push(`${desc} enthusiastic about fucking slaves in the butt, leading the arcology to <span class="yellow">adopt Gender Radicalism.</span>`); arc.FSGenderRadicalist = 5; return; } } if (V.arcologies[0].FSPaternalist > random(5, 60)) { - if (_validFSes.includes("FSDegradationist")) { + if (validFSes.includes("FSDegradationist")) { r.push(`${desc} partial to screaming and struggling, leading the arcology to <span class="yellow">adopt Degradationism.</span>`); arc.FSDegradationist = 5; return; } } else if (V.arcologies[0].FSDegradationist > random(5, 60)) { - if (_validFSes.includes("FSPaternalist")) { + if (validFSes.includes("FSPaternalist")) { r.push(`${desc} devoted to their slaves' advancement, leading the arcology to <span class="yellow">adopt Paternalism.</span>`); arc.FSPaternalist = 5; return; } } if (V.arcologies[0].FSIntellectualDependency > random(5, 60)) { - if (_validFSes.includes("FSSlaveProfessionalism")) { + if (validFSes.includes("FSSlaveProfessionalism")) { r.push(`${desc} obsessed with crafting the perfect slave, leading the arcology to <span class="yellow">adopt Slave Professionalism.</span>`); arc.FSSlaveProfessionalism = 5; return; } } else if (V.arcologies[0].FSSlaveProfessionalism > random(5, 60)) { - if (_validFSes.includes("FSIntellectualDependency")) { + if (validFSes.includes("FSIntellectualDependency")) { r.push(`${desc} worried that they may one day be outsmarted by their chattel, leading the arcology to <span class="yellow">adopt Intellectual Dependency.</span>`); arc.FSIntellectualDependency = 5; return; } } if (V.arcologies[0].FSBodyPurist > random(5, 60)) { - if (_validFSes.includes("FSTransformationFetishist")) { + if (validFSes.includes("FSTransformationFetishist")) { r.push(`${desc} fascinated with extreme surgery, leading the arcology to <span class="yellow">adopt Transformation Fetishism.</span>`); arc.FSTransformationFetishist = 5; return; } } else if (V.arcologies[0].FSTransformationFetishist > random(5, 60)) { - if (_validFSes.includes("FSBodyPurist")) { + if (validFSes.includes("FSBodyPurist")) { r.push(`${desc} concerned by trends in their slaves' health, leading the arcology to <span class="yellow">adopt Body Purism.</span>`); arc.FSBodyPurist = 5; return; } } if (V.arcologies[0].FSYouthPreferentialist > random(5, 60)) { - if (_validFSes.includes("FSMaturityPreferentialist")) { + if (validFSes.includes("FSMaturityPreferentialist")) { r.push(`${desc} devoted to time in bed with their MILF slaves, leading the arcology to <span class="yellow">adopt Maturity Preferentialism.</span>`); arc.FSMaturityPreferentialist = 5; return; } } else if (V.arcologies[0].FSMaturityPreferentialist > random(5, 60)) { - if (_validFSes.includes("FSYouthPreferentialist")) { + if (validFSes.includes("FSYouthPreferentialist")) { r.push(`${desc} devoted to fucking nubile young slaves, leading the arcology to <span class="yellow">adopt Youth Preferentialism.</span>`); arc.FSYouthPreferentialist = 5; return; } } if (V.arcologies[0].FSPetiteAdmiration > random(5, 60)) { - if (_validFSes.includes("FSStatuesqueGlorification")) { + if (validFSes.includes("FSStatuesqueGlorification")) { r.push(`${desc} convinced that tall equals beautiful, leading the arcology to <span class="yellow">adopt Statuesque Glorification.</span>`); arc.FSStatuesqueGlorification = 5; return; } } else if (V.arcologies[0].FSStatuesqueGlorification > random(5, 60)) { - if (_validFSes.includes("FSPetiteAdmiration")) { + if (validFSes.includes("FSPetiteAdmiration")) { r.push(`${desc} enamored by those shorter than them, leading the arcology to <span class="yellow">adopt Petite Admiration.</span>`); arc.FSPetiteAdmiration = 5; return; } } if (V.arcologies[0].FSSlimnessEnthusiast > random(5, 60)) { - if (_validFSes.includes("FSAssetExpansionist")) { + if (validFSes.includes("FSAssetExpansionist")) { r.push(`${desc} loves boobs, the bigger, the better, leading the arcology to <span class="yellow">adopt Asset Expansionism.</span>`); arc.FSAssetExpansionist = 5; return; } } else if (V.arcologies[0].FSAssetExpansionist > random(5, 60)) { - if (_validFSes.includes("FSSlimnessEnthusiast")) { + if (validFSes.includes("FSSlimnessEnthusiast")) { r.push(`${desc} loves a slim slave with tight holes, leading the arcology to <span class="yellow">adopt Slimness Enthusiasm.</span>`); arc.FSSlimnessEnthusiast = 5; return; } } if (V.arcologies[0].FSPastoralist > random(5, 60)) { - if (_validFSes.includes("FSPastoralist")) { + if (validFSes.includes("FSPastoralist")) { r.push(`${desc} addicted to breast milk straight from the nipple, leading the arcology to <span class="yellow">adopt Pastoralism.</span>`); arc.FSPastoralist = 5; return; } } else if (V.arcologies[0].FSCummunism > random(5, 60)) { - if (_validFSes.includes("FSCummunism")) { + if (validFSes.includes("FSCummunism")) { r.push(`${desc} obsessed with cum, leading the arcology to <span class="yellow">adopt Cummunism.</span>`); arc.FSCummunism = 5; return; } } if (V.arcologies[0].FSPhysicalIdealist > random(5, 60)) { - if (_validFSes.includes("FSPhysicalIdealist")) { + if (validFSes.includes("FSPhysicalIdealist")) { r.push(`${desc} pretty devoted to spending time in the gym, leading the arcology to <span class="yellow">adopt Physical Idealism.</span>`); arc.FSPhysicalIdealist = 5; return; } } else if (V.arcologies[0].FSHedonisticDecadence > random(5, 60)) { - if (_validFSes.includes("FSHedonisticDecadence")) { + if (validFSes.includes("FSHedonisticDecadence")) { r.push(`${desc} pretty devoted to indulging their every whim, leading the arcology to <span class="yellow">adopt Decadent Hedonism.</span>`); arc.FSHedonisticDecadence = 5; return; } } if (V.arcologies[0].FSRomanRevivalist > random(5, 60)) { - if (_validFSes.includes("FSAztecRevivalist")) { + if (validFSes.includes("FSAztecRevivalist")) { r.push(`${desc} fascinated by ancient Aztec history, leading the arcology to <span class="yellow">adopt Aztec Revivalism.</span>`); arc.FSAztecRevivalist = 5; return; } } else if (V.arcologies[0].FSAztecRevivalist > random(5, 60)) { - if (_validFSes.includes("FSRomanRevivalist")) { + if (validFSes.includes("FSRomanRevivalist")) { r.push(`${desc} fascinated by classical Roman history, leading the arcology to <span class="yellow">adopt Roman Revivalism.</span>`); arc.FSRomanRevivalist = 5; return; } } else if (V.arcologies[0].FSEgyptianRevivalist > random(5, 60) || V.arcologies[0].FSNeoImperialist > random(5, 60)) { - if (_validFSes.includes("FSArabianRevivalist")) { + if (validFSes.includes("FSArabianRevivalist")) { r.push(`${desc} fascinated by Arabian romanticism, leading the arcology to <span class="yellow">adopt Arabian Revivalism.</span>`); arc.FSArabianRevivalist = 5; return; } } else if (V.arcologies[0].FSEdoRevivalist > random(5, 60)) { - if (_validFSes.includes("FSChineseRevivalist")) { + if (validFSes.includes("FSChineseRevivalist")) { r.push(`${desc} fascinated by the long tale of Chinese history, leading the arcology to <span class="yellow">adopt Chinese Revivalism.</span>`); arc.FSChineseRevivalist = 5; return; } } else if (V.arcologies[0].FSArabianRevivalist > random(5, 60)) { - if (_validFSes.includes("FSEgyptianRevivalist")) { + if (validFSes.includes("FSEgyptianRevivalist")) { r.push(`${desc} fascinated by ancient Egyptian history, leading the arcology to <span class="yellow">adopt Egyptian Revivalism.</span>`); arc.FSEgyptianRevivalist = 5; return; } } else if (V.arcologies[0].FSChineseRevivalist > random(5, 60)) { - if (_validFSes.includes("FSEdoRevivalist")) { + if (validFSes.includes("FSEdoRevivalist")) { r.push(`${desc} fascinated by Japanese history, leading the arcology to <span class="yellow">adopt Edo Revivalism.</span>`); arc.FSEdoRevivalist = 5; return; @@ -2606,43 +2593,43 @@ App.EndWeek.neighborsDevelopment = function() { /* AGENT ADOPTION*/ if (arc.government === "your agent") { - const _leader = App.currentAgent(i); - const {he, himself, woman, him, hers} = getPronouns(_leader); + const leader = App.currentAgent(i); + const {he, himself, woman, him, hers} = getPronouns(leader); - if (_validFSes.includes("FSRepopulationFocus") && _leader.fetish === "pregnancy" && V.seePreg === 1) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Repopulationism,</span> since as a pregnancy fetishist, ${he} can't wait to see the female population's bellies swell with life.`); + if (validFSes.includes("FSRepopulationFocus") && leader.fetish === "pregnancy" && V.seePreg === 1) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Repopulationism,</span> since as a pregnancy fetishist, ${he} can't wait to see the female population's bellies swell with life.`); arc.FSRepopulationFocus = 5; return; - } else if (_validFSes.includes("FSRestart") && (_leader.preg < -1 || (_leader.ovaries === 0 && _leader.mpreg !== 1)) && _leader.genes === "XX") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Eugenics,</span> since if no-one can get pregnant, ${he} won't be alone.`); + } else if (validFSes.includes("FSRestart") && (leader.preg < -1 || (leader.ovaries === 0 && leader.mpreg !== 1)) && leader.genes === "XX") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Eugenics,</span> since if no-one can get pregnant, ${he} won't be alone.`); arc.FSRestart = 5; return; } - if (_validFSes.includes("FSGenderRadicalist") && _leader.dick > 0) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Gender Radicalism,</span> since ${he}'s a walking, swinging argument for dickgirls.`); + if (validFSes.includes("FSGenderRadicalist") && leader.dick > 0) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Gender Radicalism,</span> since ${he}'s a walking, swinging argument for dickgirls.`); arc.FSGenderRadicalist = 5; return; - } else if (_validFSes.includes("FSGenderFundamentalist") && _leader.pregKnown === 1 || _leader.bellyPreg > 1500) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Gender Fundamentalism,</span> since its citizens find leadership by a pregnant ${woman} fascinating.`); + } else if (validFSes.includes("FSGenderFundamentalist") && leader.pregKnown === 1 || leader.bellyPreg > 1500) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Gender Fundamentalism,</span> since its citizens find leadership by a pregnant ${woman} fascinating.`); arc.FSGenderFundamentalist = 5; return; } - if (_validFSes.includes("FSPaternalist") && _leader.behavioralQuirk === "advocate") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Paternalism,</span> since as an advocate for slavery, ${he} believes in its benefits.`); + if (validFSes.includes("FSPaternalist") && leader.behavioralQuirk === "advocate") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Paternalism,</span> since as an advocate for slavery, ${he} believes in its benefits.`); arc.FSPaternalist = 5; return; - } else if (_validFSes.includes("FSDegradationist") && _leader.fetish === "sadist") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Degradationism,</span> since as a sexual sadist, ${he}'s excited by the idea of leading a society that applauds ${his} cruelest impulses.`); + } else if (validFSes.includes("FSDegradationist") && leader.fetish === "sadist") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Degradationism,</span> since as a sexual sadist, ${he}'s excited by the idea of leading a society that applauds ${his} cruelest impulses.`); arc.FSDegradationist = 5; return; } - if (_validFSes.includes("FSSlaveProfessionalism") && (_leader.intelligence + _leader.intelligenceImplant >= 120) && (_leader.skill.vaginal + _leader.skill.oral + _leader.skill.anal + _leader.skill.whoring + _leader.skill.entertainment >= 400)) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Slave Professionalism,</span> since ${he} wishes to produce slaves you can be proud of.`); + if (validFSes.includes("FSSlaveProfessionalism") && (leader.intelligence + leader.intelligenceImplant >= 120) && (leader.skill.vaginal + leader.skill.oral + leader.skill.anal + leader.skill.whoring + leader.skill.entertainment >= 400)) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Slave Professionalism,</span> since ${he} wishes to produce slaves you can be proud of.`); arc.FSSlaveProfessionalism = 5; return; - } else if (_validFSes.includes("FSIntellectualDependency") && (_leader.intelligence + _leader.intelligenceImplant >= 120) && (_leader.behavioralFlaw === "arrogant" || _leader.behavioralQuirk === "insecure")) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Intellectual Dependency,</span>`); - if (_leader.behavioralQuirk === "insecure") { + } else if (validFSes.includes("FSIntellectualDependency") && (leader.intelligence + leader.intelligenceImplant >= 120) && (leader.behavioralFlaw === "arrogant" || leader.behavioralQuirk === "insecure")) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Intellectual Dependency,</span>`); + if (leader.behavioralQuirk === "insecure") { r.push(`since, due to ${his} own insecurities, needs to be frequently reassured that ${he} is smarter than the masses.`); } else { r.push(`since ${he} absolutely needs to feel intellectually superior to ${his} chattel.`); @@ -2650,126 +2637,126 @@ App.EndWeek.neighborsDevelopment = function() { arc.FSIntellectualDependency = 5; return; } - if (_validFSes.includes("FSBodyPurist") && _leader.chem > 50) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Body Purism,</span> since ${he} knows what long term drug damage feels like, and doesn't want any slave to ever experience it again.`); + if (validFSes.includes("FSBodyPurist") && leader.chem > 50) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Body Purism,</span> since ${he} knows what long term drug damage feels like, and doesn't want any slave to ever experience it again.`); arc.FSBodyPurist = 5; return; - } else if (_validFSes.includes("FSTransformationFetishist") && _leader.boobsImplant > 1000) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Transformation Fetishism,</span> out of a perverse desire to subject all slaves to massive implants like ${hers}.`); + } else if (validFSes.includes("FSTransformationFetishist") && leader.boobsImplant > 1000) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Transformation Fetishism,</span> out of a perverse desire to subject all slaves to massive implants like ${hers}.`); arc.FSTransformationFetishist = 5; return; } - if (_validFSes.includes("FSYouthPreferentialist") && _leader.actualAge <= 25) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Youth Preferentialism,</span> to buttress acceptance of ${his} own young age.`); + if (validFSes.includes("FSYouthPreferentialist") && leader.actualAge <= 25) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Youth Preferentialism,</span> to buttress acceptance of ${his} own young age.`); arc.FSYouthPreferentialist = 5; return; - } else if (_validFSes.includes("FSMaturityPreferentialist") && _leader.actualAge > 35) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Maturity Preferentialism,</span> since ${he} has a certain personal interest in promoting the idea that MILFs are sexy.`); + } else if (validFSes.includes("FSMaturityPreferentialist") && leader.actualAge > 35) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Maturity Preferentialism,</span> since ${he} has a certain personal interest in promoting the idea that MILFs are sexy.`); arc.FSMaturityPreferentialist = 5; return; } - if (_validFSes.includes("FSSlimnessEnthusiast") && _leader.behavioralQuirk === "insecure") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Slimness Enthusiasm,</span> since ${his} history of anorexia has deeply impacted ${his} idea of beauty.`); + if (validFSes.includes("FSSlimnessEnthusiast") && leader.behavioralQuirk === "insecure") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Slimness Enthusiasm,</span> since ${his} history of anorexia has deeply impacted ${his} idea of beauty.`); arc.FSSlimnessEnthusiast = 5; return; - } else if (_validFSes.includes("FSAssetExpansionist") && _leader.fetish === "boobs") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Asset Expansionism,</span> since ${he}'s a breast expansion fetishist in addition to being a mere breast fetishist.`); + } else if (validFSes.includes("FSAssetExpansionist") && leader.fetish === "boobs") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Asset Expansionism,</span> since ${he}'s a breast expansion fetishist in addition to being a mere breast fetishist.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSAssetExpansionist") && _leader.sexualQuirk === "size queen" && _leader.vagina > 3) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Asset Expansionism,</span> since ${he}'s a stickler for big dicks and seeks to find one large enough to push ${him} to ${his} very limit.`); + } else if (validFSes.includes("FSAssetExpansionist") && leader.sexualQuirk === "size queen" && leader.vagina > 3) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Asset Expansionism,</span> since ${he}'s a stickler for big dicks and seeks to find one large enough to push ${him} to ${his} very limit.`); arc.FSAssetExpansionist = 5; return; } - if (_validFSes.includes("FSCummunism") && _leader.fetish === "cumslut") { // this will become the cum focused condition, being replaced with breast focus for milk - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Cummunism,</span> since ${he} already loves sucking down huge loads of cum.`); + if (validFSes.includes("FSCummunism") && leader.fetish === "cumslut") { // this will become the cum focused condition, being replaced with breast focus for milk + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Cummunism,</span> since ${he} already loves sucking down huge loads of cum.`); arc.FSCummunism = 5; return; - } else if (_validFSes.includes("FSPastoralist") && _leader.fetish === "boobs") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Pastoralism,</span> since ${he} loves boobs and adores suckling them.`); + } else if (validFSes.includes("FSPastoralist") && leader.fetish === "boobs") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Pastoralism,</span> since ${he} loves boobs and adores suckling them.`); arc.FSPastoralist = 5; return; } - if (_validFSes.includes("FSHedonisticDecadence") && _leader.behavioralFlaw === "gluttonous") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Decadent Hedonism,</span> since ${he} already loves over-eating.`); + if (validFSes.includes("FSHedonisticDecadence") && leader.behavioralFlaw === "gluttonous") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Decadent Hedonism,</span> since ${he} already loves over-eating.`); arc.FSHedonisticDecadence = 5; return; - } else if (_validFSes.includes("FSPhysicalIdealist") && _leader.behavioralQuirk === "fitness") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Physical Idealism,</span> since ${he}'s a fitness fanatic ${himself}.`); + } else if (validFSes.includes("FSPhysicalIdealist") && leader.behavioralQuirk === "fitness") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Physical Idealism,</span> since ${he}'s a fitness fanatic ${himself}.`); arc.FSPhysicalIdealist = 5; return; - } else if (_validFSes.includes("FSHedonisticDecadence") && _leader.fetish !== "none" && _leader.fetishStrength >= 100) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Decadent Hedonism,</span> since ${he} seeks to satisfy ${his} powerful fetish.`); + } else if (validFSes.includes("FSHedonisticDecadence") && leader.fetish !== "none" && leader.fetishStrength >= 100) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Decadent Hedonism,</span> since ${he} seeks to satisfy ${his} powerful fetish.`); arc.FSHedonisticDecadence = 5; return; } - if (_validFSes.includes("FSStatuesqueGlorification") && _leader.height >= 200) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Statuesque Glorification,</span> since ${he} is tired of being one of the tallest in arcology.`); + if (validFSes.includes("FSStatuesqueGlorification") && leader.height >= 200) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Statuesque Glorification,</span> since ${he} is tired of being one of the tallest in arcology.`); arc.FSStatuesqueGlorification = 5; return; - } else if (_validFSes.includes("FSPetiteAdmiration") && _leader.height >= 170 && _leader.fetish === "dom") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Petite Admiration,</span> since it is far easier to dominate someone much smaller than oneself.`); + } else if (validFSes.includes("FSPetiteAdmiration") && leader.height >= 170 && leader.fetish === "dom") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Petite Admiration,</span> since it is far easier to dominate someone much smaller than oneself.`); arc.FSPetiteAdmiration = 5; return; } - if (_validFSes.includes("FSIncestFetishist")) { - const _lover = V.slaves.find(function(s) { return s.ID === _leader.relationshipTarget && areRelated(s, _leader) && s.assignment === "live with your agent"; }); - if ((_leader.behavioralQuirk === "sinful" || _leader.sexualQuirk === "perverted") && _lover && V.seeIncest === 1) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Incest Festishism,</span> to share the love and joy ${he} holds with ${his} ${relativeTerm(_leader, _lover)}.`); + if (validFSes.includes("FSIncestFetishist")) { + const lover = V.slaves.find(function(s) { return s.ID === leader.relationshipTarget && areRelated(s, leader) && s.assignment === "live with your agent"; }); + if ((leader.behavioralQuirk === "sinful" || leader.sexualQuirk === "perverted") && lover && V.seeIncest === 1) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Incest Festishism,</span> to share the love and joy ${he} holds with ${his} ${relativeTerm(leader, lover)}.`); arc.FSIncestFetishist = 5; return; } } - if (_validFSes.includes("FSChattelReligionist") && _leader.behavioralQuirk === "devout") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Chattel Religionism,</span> to share and spread ${his} deeply held beliefs about the holiness of sexual service.`); + if (validFSes.includes("FSChattelReligionist") && leader.behavioralFlaw === "devout") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Chattel Religionism,</span> to share and spread ${his} deeply held beliefs about the holiness of sexual service.`); arc.FSChattelReligionist = 5; return; - } else if (_validFSes.includes("FSChattelReligionist") && _leader.behavioralQuirk === "sinful") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Chattel Religionism,</span> since ${he}'s excited by the prospect of getting away with horrible sins against old religions in public.`); + } else if (validFSes.includes("FSChattelReligionist") && leader.behavioralQuirk === "sinful") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Chattel Religionism,</span> since ${he}'s excited by the prospect of getting away with horrible sins against old religions in public.`); arc.FSChattelReligionist = 5; return; } - if (_validFSes.includes("FSEgyptianRevivalist") && _leader.relationshipTarget !== 0) { - const _lover = getSlave(_leader.relationshipTarget); - if (_lover && areRelated(_leader, _lover)) { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Egyptian Revivalism,</span> since ${he}'s already part of a gloriously incestuous relationship.`); + if (validFSes.includes("FSEgyptianRevivalist") && leader.relationshipTarget !== 0) { + const lover = getSlave(leader.relationshipTarget); + if (lover && areRelated(leader, lover)) { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Egyptian Revivalism,</span> since ${he}'s already part of a gloriously incestuous relationship.`); arc.FSEgyptianRevivalist = 5; return; } - } else if (_validFSes.includes("FSChineseRevivalist") && _leader.nationality === "Chinese") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Chinese Revivalism,</span> since ${he}'s Chinese ${himself} and can claim high honor in such a society.`); + } else if (validFSes.includes("FSChineseRevivalist") && leader.nationality === "Chinese") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Chinese Revivalism,</span> since ${he}'s Chinese ${himself} and can claim high honor in such a society.`); arc.FSChineseRevivalist = 5; return; - } else if (_validFSes.includes("FSEdoRevivalist") && _leader.nationality === "Japanese") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Edo Revivalism,</span> since ${he}'s Japanese ${himself} and can claim high honor in such a society.`); + } else if (validFSes.includes("FSEdoRevivalist") && leader.nationality === "Japanese") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Edo Revivalism,</span> since ${he}'s Japanese ${himself} and can claim high honor in such a society.`); arc.FSEdoRevivalist = 5; return; - } else if (_validFSes.includes("FSAztecRevivalist") && _leader.nationality === "Mexican") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Aztec Revivalism,</span> since ${he}'s Mexican ${himself} and can claim high honor in such a society.`); + } else if (validFSes.includes("FSAztecRevivalist") && leader.nationality === "Mexican") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Aztec Revivalism,</span> since ${he}'s Mexican ${himself} and can claim high honor in such a society.`); arc.FSAztecRevivalist = 5; return; - } else if (_validFSes.includes("FSNeoImperialist") && _leader.nationality === "German") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s German ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); + } else if (validFSes.includes("FSNeoImperialist") && leader.nationality === "German") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s German ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); arc.FSNeoImperialist = 5; return; - } else if (_validFSes.includes("FSNeoImperialist") && _leader.nationality === "French") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s French ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); + } else if (validFSes.includes("FSNeoImperialist") && leader.nationality === "French") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s French ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); arc.FSNeoImperialist = 5; return; - } else if (_validFSes.includes("FSNeoImperialist") && _leader.nationality === "Spanish") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s Spanish ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); + } else if (validFSes.includes("FSNeoImperialist") && leader.nationality === "Spanish") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s Spanish ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); arc.FSNeoImperialist = 5; return; - } else if (_validFSes.includes("FSNeoImperialist") && _leader.nationality === "English") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s English ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); + } else if (validFSes.includes("FSNeoImperialist") && leader.nationality === "English") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Neo-Imperialism,</span> since ${he}'s English ${himself} and can easily cement ${his} rule with Imperial directives in your name.`); arc.FSNeoImperialist = 5; return; - } else if (_validFSes.includes("FSRomanRevivalist") && _leader.behavioralQuirk === "confident") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Roman Revivalism,</span> since it appeals to ${his} confident, patrician nature.`); + } else if (validFSes.includes("FSRomanRevivalist") && leader.behavioralQuirk === "confident") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Roman Revivalism,</span> since it appeals to ${his} confident, patrician nature.`); arc.FSRomanRevivalist = 5; return; - } else if (_validFSes.includes("FSArabianRevivalist") && _leader.fetish === "dom") { - r.push(`Your agent <span class="pink">_leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Arabian Revivalism,</span> since ${he}'s sexually dominant and quite likes the idea of overseeing slave bazaars.`); + } else if (validFSes.includes("FSArabianRevivalist") && leader.fetish === "dom") { + r.push(`Your agent <span class="pink">leader.slaveName</span> successfully pushes it to <span class="yellow">adopt Arabian Revivalism,</span> since ${he}'s sexually dominant and quite likes the idea of overseeing slave bazaars.`); arc.FSArabianRevivalist = 5; return; } @@ -2777,11 +2764,11 @@ App.EndWeek.neighborsDevelopment = function() { /* CROSS-FS ADOPTION*/ if (arc.FSSubjugationist > random(50, 200)) { - if (_validFSes.includes("FSDegradationist")) { + if (validFSes.includes("FSDegradationist")) { r.push(`The arcology's racial Subjugationist culture <span class="yellow">pushes it towards Degradationism.</span>`); arc.FSDegradationist = 5; return; - } else if ((_validFSes.includes("FSAztecRevivalist") && _validFSes.includes("FSEgyptianRevivalist"))) { + } else if ((validFSes.includes("FSAztecRevivalist") && validFSes.includes("FSEgyptianRevivalist"))) { if (random(0, 1) === 0) { r.push(`The arcology's racial Subjugationist culture <span class="yellow">pushes it towards Egyptian Revivalism,</span> since the Ancient Egyptians are famous for keeping a race of slaves.`); arc.FSEgyptianRevivalist = 5; @@ -2794,18 +2781,18 @@ App.EndWeek.neighborsDevelopment = function() { } } if (arc.FSRestart > random(50, 200)) { - if (_validFSes.includes("FSNeoImperialist")) { + if (validFSes.includes("FSNeoImperialist")) { r.push(`The arcology's elitist, eugenicist culture <span class="yellow">pushes it towards Neo-Imperialism,</span> since the societal elite view themselves as the only appropriate rulers of their society.`); arc.FSNeoImperialist = 5; return; } } if (arc.FSSupremacist > random(50, 200)) { - if (_validFSes.includes("FSPaternalist")) { + if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's racial Supremacist culture <span class="yellow">pushes it towards Paternalism.</span>`); arc.FSPaternalist = 5; return; - } else if ((_validFSes.includes("FSEdoRevivalist") && _validFSes.includes("FSChineseRevivalist") && (arc.FSSupremacistRace === "asian"))) { + } else if ((validFSes.includes("FSEdoRevivalist") && validFSes.includes("FSChineseRevivalist") && (arc.FSSupremacistRace === "asian"))) { if (random(0, 1) === 0) { r.push(`The arcology's racial Supremacist culture <span class="yellow">pushes it towards Edo Revivalism,</span> since the beauty and grace of the Japanese people are watchwords there.`); arc.FSEdoRevivalist = 5; @@ -2818,212 +2805,212 @@ App.EndWeek.neighborsDevelopment = function() { } } if (arc.FSRepopulationFocus > random(50, 200)) { - if (_validFSes.includes("FSAssetExpansionist")) { + if (validFSes.includes("FSAssetExpansionist")) { r.push(`The arcology's Repopulationist culture <span class="yellow">pushes it towards Asset Expansionism,</span> since big pregnant bellies go great with huge tits and asses.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSGenderFundamentalist")) { + } else if (validFSes.includes("FSGenderFundamentalist")) { r.push(`The arcology's Repopulationist culture <span class="yellow">pushes it towards Gender Fundamentalism,</span> since traditional women make better mothers.`); arc.FSGenderFundamentalist = 5; return; - } else if (_validFSes.includes("FSPetiteAdmiration")) { + } else if (validFSes.includes("FSPetiteAdmiration")) { r.push(`The arcology's Repopulationist culture <span class="yellow">pushes it towards Petite Admiration,</span> since shorter women tend to have an easier time with childbirth.`); arc.FSPetiteAdmiration = 5; return; } } else if (arc.FSRestart > random(50, 200)) { - if (_validFSes.includes("FSDegradationist")) { + if (validFSes.includes("FSDegradationist")) { r.push(`The arcology's elite focused culture <span class="yellow">pushes it towards Degradationism,</span> since its lowest class deserves nothing but misery.`); arc.FSDegradationist = 5; return; - } else if (_validFSes.includes("FSSlaveProfessionalism")) { + } else if (validFSes.includes("FSSlaveProfessionalism")) { r.push(`The arcology's elite focused culture <span class="yellow">pushes it towards Slave Professionalism,</span> since the highest class deserve nothing less than the best slaves.`); arc.FSSlaveProfessionalism = 5; return; - } else if (_validFSes.includes("FSHedonisticDecadence")) { + } else if (validFSes.includes("FSHedonisticDecadence")) { r.push(`The arcology's wide range of imports <span class="yellow">pushes it towards Decadent Hedonism,</span> since it has access to so many undiscovered pleasures.`); arc.FSHedonisticDecadence = 5; return; } } if (arc.FSGenderRadicalist > random(50, 200)) { - if (_validFSes.includes("FSTransformationFetishist")) { + if (validFSes.includes("FSTransformationFetishist")) { r.push(`The arcology's Gender Radicalist culture <span class="yellow">pushes it towards Transformation Fetishism,</span> since surgery can turn a slave into anything.`); arc.FSTransformationFetishist = 5; return; - } else if (_validFSes.includes("FSSlimnessEnthusiast")) { + } else if (validFSes.includes("FSSlimnessEnthusiast")) { r.push(`The arcology's Gender Radicalist culture <span class="yellow">pushes it towards Slimness Enthusiasm,</span> since that's the kind of body many of its slaves have.`); arc.FSSlimnessEnthusiast = 5; return; - } else if (_validFSes.includes("FSCummunism")) { + } else if (validFSes.includes("FSCummunism")) { r.push(`The arcology's Gender Radicalist culture <span class="yellow">pushes it towards Cummunism,</span> since many of its slaves are capable of giving cum.`); arc.FSCummunism = 5; return; } } else if (arc.FSGenderFundamentalist > random(50, 200)) { - if (_validFSes.includes("FSPastoralist")) { + if (validFSes.includes("FSPastoralist")) { r.push(`The arcology's Gender Fundamentalist culture <span class="yellow">pushes it towards Pastoralism,</span> since its pregnant slaves are already giving milk.`); arc.FSPastoralist = 5; return; - } else if (_validFSes.includes("FSIntellectualDependency")) { + } else if (validFSes.includes("FSIntellectualDependency")) { r.push(`The arcology's Gender Fundamentalist culture <span class="yellow">pushes it towards Intellectual Dependency,</span> since women don't need to think to serve men.`); arc.FSYouthPreferentialist = 5; return; - } else if (_validFSes.includes("FSYouthPreferentialist")) { + } else if (validFSes.includes("FSYouthPreferentialist")) { r.push(`The arcology's Gender Fundamentalist culture <span class="yellow">pushes it towards Youth Preferentialism,</span> since younger slaves are beautiful and fertile.`); arc.FSYouthPreferentialist = 5; return; } } if (arc.FSPaternalist > random(50, 200)) { - if (_validFSes.includes("FSChattelReligionist")) { + if (validFSes.includes("FSChattelReligionist")) { r.push(`The arcology's Paternalist culture <span class="yellow">pushes it towards Chattel Religionism,</span> since many of its slaves are already worshipful.`); arc.FSChattelReligionist = 5; return; - } else if (_validFSes.includes("FSBodyPurist")) { + } else if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Paternalist culture <span class="yellow">pushes it towards Body Purism,</span> since giving slaves dangerous drugs is hardly good for them.`); arc.FSBodyPurist = 5; return; - } else if (_validFSes.includes("FSRomanRevivalist")) { + } else if (validFSes.includes("FSRomanRevivalist")) { r.push(`The arcology's Paternalist culture <span class="yellow">pushes it towards Roman Revivalism,</span> since loyal service to the res publica bears similarity to their existing mores.`); arc.FSRomanRevivalist = 5; return; } } else if (arc.FSDegradationist > random(50, 200)) { - if (_validFSes.includes("FSTransformationFetishist")) { + if (validFSes.includes("FSTransformationFetishist")) { r.push(`The arcology's Degradationist culture <span class="yellow">pushes it towards Transformation Fetishism,</span> the ultimate expression of power over slave bodies.`); arc.FSTransformationFetishist = 5; return; - } else if (_validFSes.includes("FSGenderRadicalist")) { + } else if (validFSes.includes("FSGenderRadicalist")) { r.push(`The arcology's Degradationist culture <span class="yellow">pushes it towards Gender Radicalism,</span> since the joy of forcing a gender role on a slave is already popular.`); arc.FSGenderRadicalist = 5; return; } } if (arc.FSIntellectualDependency > random(50, 200)) { - if (_validFSes.includes("FSTransformationFetishist")) { + if (validFSes.includes("FSTransformationFetishist")) { r.push(`The arcology's Intellectual Dependency culture <span class="yellow">pushes it towards Transformation Fetishism,</span> to give its bimbos a body most fitting.`); arc.FSTransformationFetishist = 5; return; - } else if (_validFSes.includes("FSYouthPreferentialist")) { + } else if (validFSes.includes("FSYouthPreferentialist")) { r.push(`The arcology's Intellectual Dependency culture <span class="yellow">pushes it towards Youth Preferentialism,</span> since the young have more energy to party.`); arc.FSYouthPreferentialist = 5; return; - } else if (_validFSes.includes("FSHedonisticDecadence")) { + } else if (validFSes.includes("FSHedonisticDecadence")) { r.push(`The arcology's Intellectual Dependency culture <span class="yellow">pushes it towards Decadent Hedonism,</span> since base instinct already rules slaves' lives.`); arc.FSHedonisticDecadence = 5; return; - } else if (_validFSes.includes("FSRepopulationFocus")) { + } else if (validFSes.includes("FSRepopulationFocus")) { r.push(`The arcology's Intellectual Dependency culture <span class="yellow">pushes it towards Repopulationism,</span> since there has been an epidemic of unplanned pregnancies among the slave population.`); arc.FSRepopulationFocus = 5; return; } } else if (arc.FSSlaveProfessionalism > random(50, 200)) { - if (_validFSes.includes("FSMaturityPreferentialist")) { + if (validFSes.includes("FSMaturityPreferentialist")) { r.push(`The arcology's Slave Professionalism culture <span class="yellow">pushes it towards Maturity Preferentialist,</span> since with age comes experience.`); arc.FSMaturityPreferentialist = 5; return; - } else if (_validFSes.includes("FSPaternalist")) { + } else if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Slave Professionalism culture <span class="yellow">pushes it towards Paternalism,</span> since happy slaves are much more willing to be molded in to shape.`); arc.FSPaternalist = 5; return; - } else if (_validFSes.includes("FSPhysicalIdealist")) { + } else if (validFSes.includes("FSPhysicalIdealist")) { r.push(`The arcology's Slave Professionalism culture <span class="yellow">pushes it towards Physical Idealism,</span> since a fitting body is required to house the perfect mind.`); arc.FSPhysicalIdealist = 5; return; - } else if (_validFSes.includes("FSChattelReligionist")) { + } else if (validFSes.includes("FSChattelReligionist")) { r.push(`The arcology's Slave Professionalism culture <span class="yellow">pushes it towards Chattel Religionism,</span> since skilled service is already a part of a slave's daily life.`); arc.FSChattelReligionist = 5; return; } } if (arc.FSBodyPurist > random(50, 200)) { - if (_validFSes.includes("FSPhysicalIdealist")) { + if (validFSes.includes("FSPhysicalIdealist")) { r.push(`The arcology's Body Purist culture <span class="yellow">pushes it towards Physical Idealism,</span> since it already takes an intense interest in bodily perfection.`); arc.FSPhysicalIdealist = 5; return; - } else if (_validFSes.includes("FSPaternalist")) { + } else if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Body Purist culture <span class="yellow">pushes it towards Paternalism,</span> since it's become obvious that happiness is a necessary part of wellness.`); arc.FSPaternalist = 5; return; } } else if (arc.FSTransformationFetishist > random(50, 200)) { - if (_validFSes.includes("FSAssetExpansionist")) { + if (validFSes.includes("FSAssetExpansionist")) { r.push(`The arcology's Transformation Fetishist culture <span class="yellow">pushes it towards Asset Expansionism,</span> since it's already overrun with massive tits and asses.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSDegradationist")) { + } else if (validFSes.includes("FSDegradationist")) { r.push(`The arcology's Transformation Fetishist culture <span class="yellow">pushes it towards Degradationism,</span> since it's already used to slaves whining about their latest surgeries.`); arc.FSDegradationist = 5; return; } } if (arc.FSYouthPreferentialist > random(50, 200)) { - if (_validFSes.includes("FSSlimnessEnthusiast")) { + if (validFSes.includes("FSSlimnessEnthusiast")) { r.push(`The arcology's Youth Preferentialist culture <span class="yellow">pushes it towards Slimness Enthusiasm,</span> since that's the kind of body many of its slaves have.`); arc.FSSlimnessEnthusiast = 5; return; - } else if (_validFSes.includes("FSRepopulationFocus")) { + } else if (validFSes.includes("FSRepopulationFocus")) { r.push(`The arcology's Youth Preferentialist culture <span class="yellow">pushes it towards Repopulationism,</span> since many of its slaves are deliciously ripe for breeding.`); arc.FSRepopulationFocus = 5; return; } } else if (arc.FSMaturityPreferentialist > random(50, 200)) { - if (_validFSes.includes("FSAssetExpansionist")) { + if (validFSes.includes("FSAssetExpansionist")) { r.push(`The arcology's Maturity Preferentialist culture <span class="yellow">pushes it towards Asset Expansionism,</span> since that's the kind of body many of its slaves have.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSPaternalist")) { + } else if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Maturity Preferentialist culture <span class="yellow">pushes it towards Paternalism,</span> since its many older slaves have skills best applied by a happy woman.`); arc.FSPaternalist = 5; return; } } if (arc.FSPetiteAdmiration > random(50, 200)) { - if (_validFSes.includes("FSAssetExpansionist")) { + if (validFSes.includes("FSAssetExpansionist")) { r.push(`The arcology's Petite Admiration culture <span class="yellow">pushes it towards Asset Expansionist,</span> since a ${girlU} with tits wider than ${heU} is tall attracts quite some attention.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSPaternalist")) { + } else if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Petite Admiration culture <span class="yellow">pushes it towards Paternalism,</span> since such tiny ${girlU}s need extra special attention.`); arc.FSPaternalist = 5; return; - } else if (_validFSes.includes("FSIncestFetishist")) { + } else if (validFSes.includes("FSIncestFetishist")) { r.push(`The arcology's Petite Admiration culture <span class="yellow">pushes it towards Incest Fetishism,</span> since age play often goes hand-in-hand with size play.`); arc.FSIncestFetishist = 5; return; } } else if (arc.FSStatuesqueGlorification > random(50, 200)) { - if (_validFSes.includes("FSPhysicalIdealist")) { + if (validFSes.includes("FSPhysicalIdealist")) { r.push(`The arcology's Statuesque Glorification culture <span class="yellow">pushes it towards Physical Idealism,</span> since being ripped complements being tall.`); arc.FSPhysicalIdealist = 5; return; - } else if (_validFSes.includes("FSDegradationist")) { + } else if (validFSes.includes("FSDegradationist")) { r.push(`The arcology's Statuesque Glorification culture <span class="yellow">pushes it towards Degradationism,</span> since those that don't measure up deserve only suffering.`); arc.FSDegradationist = 5; return; } } if (arc.FSSlimnessEnthusiast > random(50, 200)) { - if (_validFSes.includes("FSYouthPreferentialist")) { + if (validFSes.includes("FSYouthPreferentialist")) { r.push(`The arcology's Slimness Enthusiast culture <span class="yellow">pushes it towards Youth Preferentialism,</span> since younger slaves are often attractively slim.`); arc.FSYouthPreferentialist = 5; return; - } else if (_validFSes.includes("FSBodyPurist")) { + } else if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Slimness Enthusiast culture <span class="yellow">pushes it towards Body Purism,</span> since the last thing they want is prettily slender girls with health trouble.`); arc.FSBodyPurist = 5; return; } } else if (arc.FSAssetExpansionist > random(50, 200)) { - if (_validFSes.includes("FSMaturityPreferentialist")) { + if (validFSes.includes("FSMaturityPreferentialist")) { r.push(`The arcology's Asset Expansionist culture <span class="yellow">pushes it towards Maturity Preferentialism,</span> since MILF slaves tend to come with nice big tits.`); arc.FSMaturityPreferentialist = 5; return; - } else if (_validFSes.includes("FSBodyPurist")) { + } else if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Asset Expansionist culture <span class="yellow">pushes it towards Body Purism,</span> since slaves on curatives are slaves not on growth hormones.`); arc.FSBodyPurist = 5; return; - } else if (_validFSes.includes("FSPetiteAdmiration") && _validFSes.includes("FSStatuesqueGlorification")) { + } else if (validFSes.includes("FSPetiteAdmiration") && validFSes.includes("FSStatuesqueGlorification")) { if (random(0, 1) === 1) { r.push(`The arcology's Asset Expansionist culture <span class="yellow">pushes it towards Petite Admiration,</span> since the smaller a slave's body is, the bigger their breasts will look.`); arc.FSPetiteAdmiration = 5; @@ -3036,145 +3023,145 @@ App.EndWeek.neighborsDevelopment = function() { } } if (arc.FSPastoralist > random(50, 200)) { - if (_validFSes.includes("FSBodyPurist")) { + if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Pastoralist culture <span class="yellow">pushes it towards Body Purism,</span> since there have been concerns about milk purity.`); arc.FSBodyPurist = 5; return; - } else if (_validFSes.includes("FSAssetExpansionist")) { + } else if (validFSes.includes("FSAssetExpansionist")) { r.push(`The arcology's Pastoralist culture <span class="yellow">pushes it towards Asset Expansionism,</span> since they're convinced that there's no such thing as udders that are too big.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSRepopulationFocus")) { + } else if (validFSes.includes("FSRepopulationFocus")) { r.push(`The arcology's Pastoralist culture <span class="yellow">pushes it towards Repopulationism,</span> since pregnancy stimulates milk flow.`); arc.FSRepopulationFocus = 5; return; } } else if (arc.FSCummunism > random(50, 200)) { - if (_validFSes.includes("FSPhysicalIdealist")) { + if (validFSes.includes("FSPhysicalIdealist")) { r.push(`The arcology's Cummunist culture <span class="yellow">pushes it towards Physical Idealism,</span> since big balls and huge loads go hand in hand with masculine muscles.`); arc.FSPhysicalIdealist = 5; return; - } else if (_validFSes.includes("FSAssetExpansionist")) { + } else if (validFSes.includes("FSAssetExpansionist")) { r.push(`The arcology's Cummunist culture <span class="yellow">pushes it towards Asset Expansionism,</span> since they're convinced that there's no such thing as balls that are too big.`); arc.FSAssetExpansionist = 5; return; - } else if (_validFSes.includes("FSBodyPurist")) { + } else if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Cummunist culture <span class="yellow">pushes it towards Body Purism,</span> since there have been concerns about cum purity.`); arc.FSBodyPurist = 5; return; } } if (arc.FSHedonisticDecadence > random(50, 200)) { - if (_validFSes.includes("FSPastoralist")) { + if (validFSes.includes("FSPastoralist")) { r.push(`The arcology's Hedonistic culture <span class="yellow">pushes it towards Pastoralism,</span> since nothing beats a nice glass of fresh squeezed milk with your cake.`); arc.FSPastoralist = 5; return; - } else if (_validFSes.includes("FSIntellectualDependency")) { + } else if (validFSes.includes("FSIntellectualDependency")) { r.push(`The arcology's Hedonistic culture <span class="yellow">pushes it towards Intellectual Dependency,</span> since higher thought is unneeded when you have everything you want.`); arc.FSIntellectualDependency = 5; return; - } else if (_validFSes.includes("FSPaternalist")) { + } else if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Hedonistic culture <span class="yellow">pushes it towards Paternalism,</span> since happiness is infectious.`); arc.FSPaternalist = 5; return; } } else if (arc.FSPhysicalIdealist > random(50, 200)) { - if (_validFSes.includes("FSBodyPurist")) { + if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Physical Idealist culture <span class="yellow">pushes it towards Body Purism,</span> since it's already used to treating slaves' bodies as temples.`); arc.FSBodyPurist = 5; return; - } else if (_validFSes.includes("FSYouthPreferentialist")) { + } else if (validFSes.includes("FSYouthPreferentialist")) { r.push(`The arcology's Physical Idealist culture <span class="yellow">pushes it towards Youth Preferentialism,</span> since beauty and athletic prowess do tend to peak early.`); arc.FSYouthPreferentialist = 5; return; - } else if (_validFSes.includes("FSStatuesqueGlorification")) { + } else if (validFSes.includes("FSStatuesqueGlorification")) { r.push(`The arcology's Physical Idealist culture <span class="yellow">pushes it towards Statuesque Glorification,</span> to better emulate the titans of legend.`); arc.FSStatuesqueGlorification = 5; return; - } else if (_validFSes.includes("FSCummunism")) { + } else if (validFSes.includes("FSCummunism")) { r.push(`The arcology's Physical Idealist culture <span class="yellow">pushes it towards Cummunism,</span> since muscular, testosterone filled slaves make admirable cumshots.`); arc.FSCummunism = 5; return; } } if (arc.FSIncestFetishist > random(50, 200)) { - if (_validFSes.includes("FSRepopulationFocus")) { + if (validFSes.includes("FSRepopulationFocus")) { r.push(`The arcology's Incest Fetishizing culture <span class="yellow">pushes it towards Repopulationism,</span> in order to create many new future loving couples.`); arc.FSRepopulationFocus = 5; return; - } else if (_validFSes.includes("FSBodyPurist")) { + } else if (validFSes.includes("FSBodyPurist")) { r.push(`The arcology's Incest Fetishizing culture <span class="yellow">pushes it towards Body Purism,</span> in order to keep its bloodlines pure.`); arc.FSBodyPurist = 5; return; - } else if (_validFSes.includes("FSPaternalist")) { + } else if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Incest Fetishizing culture <span class="yellow">pushes it towards Paternalism,</span> as healthy slaves live longer allowing relationships to span generations.`); arc.FSPaternalist = 5; return; - } else if (_validFSes.includes("FSEgyptianRevivalist")) { + } else if (validFSes.includes("FSEgyptianRevivalist")) { r.push(`The arcology's Incest Fetishizing culture <span class="yellow">pushes it towards Egyptian Revivalism,</span> as they naturally seek even more incestuous fun.`); arc.FSEgyptianRevivalist = 5; return; } } if (arc.FSChattelReligionist > random(50, 200)) { - if (_validFSes.includes("FSPaternalist")) { + if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Chattel Religionist culture <span class="yellow">pushes it towards Paternalism,</span> since charitable care for slaves' welfare has become widespread.`); arc.FSPaternalist = 5; return; - } else if (_validFSes.includes("FSArabianRevivalist")) { + } else if (validFSes.includes("FSArabianRevivalist")) { r.push(`The arcology's Chattel Religionist culture <span class="yellow">pushes it towards Arabian Revivalism,</span> since such an intermingling of slavery and faith fascinates them.`); arc.FSArabianRevivalist = 5; return; } } if (arc.FSRomanRevivalist > random(50, 200)) { - if (_validFSes.includes("FSPaternalist")) { + if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Roman Revivalist culture <span class="yellow">pushes it towards Paternalism,</span> since some Roman slaves were traditionally permitted limited rights.`); arc.FSPaternalist = 5; return; } } if (arc.FSNeoImperialist > random(50, 200)) { - if (_validFSes.includes("FSRestart")) { + if (validFSes.includes("FSRestart")) { r.push(`The arcology's Neo-Imperialist culture <span class="yellow">pushes it towards Eugenics,</span> since their hegemonic, noble culture naturally views itself as genetically superior to the unwashed masses.`); arc.FSRestart = 5; return; } } if (arc.FSAztecRevivalist > random(50, 200)) { - if (_validFSes.includes("FSDegradationist")) { + if (validFSes.includes("FSDegradationist")) { r.push(`The arcology's Aztec Revivalist culture <span class="yellow">pushes it towards Degradation,</span> since most Aztec war slaves were tortured and sacrificed.`); arc.FSDegradationist = 5; return; } } if (arc.FSEgyptianRevivalist > random(50, 200)) { - if (_validFSes.includes("FSChattelReligionist")) { + if (validFSes.includes("FSChattelReligionist")) { r.push(`The arcology's Egyptian Revivalist culture <span class="yellow">pushes it towards Chattel Religionism,</span> since worship is already becoming an established part of its life.`); arc.FSChattelReligionist = 5; return; - } else if (_validFSes.includes("FSIncestFetishist")) { + } else if (validFSes.includes("FSIncestFetishist")) { r.push(`The arcology's Egyptian Revivalist culture <span class="yellow">pushes it towards Incest Fetishism,</span> since more incest is only a good thing in its eyes.`); arc.FSIncestFetishist = 5; return; } } if (arc.FSEdoRevivalist > random(50, 200)) { - if (_validFSes.includes("FSSlimnessEnthusiast")) { + if (validFSes.includes("FSSlimnessEnthusiast")) { r.push(`The arcology's Edo Revivalist culture <span class="yellow">pushes it towards Slimness Enthusiasm,</span> since slim and elegant slaves are already fashionable there.`); arc.FSSlimnessEnthusiast = 5; return; } } if (arc.FSArabianRevivalist > random(50, 200)) { - if (_validFSes.includes("FSChattelReligionist")) { + if (validFSes.includes("FSChattelReligionist")) { r.push(`The arcology's Arabian Revivalist culture <span class="yellow">pushes it towards Chattel Religionism,</span> since the word of God is already a matter of daily significance there.`); arc.FSChattelReligionist = 5; return; } } if (arc.FSChineseRevivalist > random(50, 200)) { - if (_validFSes.includes("FSPaternalist")) { + if (validFSes.includes("FSPaternalist")) { r.push(`The arcology's Chinese Revivalist culture <span class="yellow">pushes it towards Paternalism,</span> since traditional beliefs about duty and order have become accepted.`); arc.FSPaternalist = 5; return; @@ -3184,45 +3171,46 @@ App.EndWeek.neighborsDevelopment = function() { /* NEIGHBOR ADOPTION*/ for (let j = 0; j < V.arcologies.length; j++) { - if (arc.direction !== V.arcologies[j].direction) { - let _influenceBonus = 0; - if (arc.direction === V.arcologies[j].influenceTarget) { - r.push(`${V.arcologies[j].name}'s directed cultural influence gives it some input over ${arc.name}'s choice of direction.`); - _influenceBonus = 20; + const arc2 = V.arcologies[j]; + if (arc.direction !== arc2.direction) { + let influenceBonus = 0; + if (arc.direction === arc2.influenceTarget) { + r.push(`${arc2.name}'s directed cultural influence gives it some input over ${arc.name}'s choice of direction.`); + influenceBonus = 20; } - const _opinion = App.Neighbor.opinion(i, j); - if (_opinion >= 50) { - r.push(`${arc.name} is aligned with ${V.arcologies[j].name} socially, encouraging it to consider adopting all its cultural values.`); - _influenceBonus += _opinion - 50; - } else if (_opinion <= -50) { - r.push(`${arc.name} is culturally opposed to ${V.arcologies[j].name}, encouraging it to resist adopting its cultural values.`); - _influenceBonus += _opinion + 50; + const opinion = App.Neighbor.opinion(i, j); + if (opinion >= 50) { + r.push(`${arc.name} is aligned with ${arc2.name} socially, encouraging it to consider adopting all its cultural values.`); + influenceBonus += opinion - 50; + } else if (opinion <= -50) { + r.push(`${arc.name} is culturally opposed to ${arc2.name}, encouraging it to resist adopting its cultural values.`); + influenceBonus += opinion + 50; } - for (const _candidate of _validFSes) { - if (_candidate === "FSSubjugationist") { - if ((arc.FSSupremacist === "unset") || (arc.FSSupremacistRace !== V.arcologies[j].FSSubjugationistRace)) { - if (V.arcologies[j].FSSubjugationist > random(0, 200) - _influenceBonus) { - r.push(`It <span class="yellow">adopts ${V.arcologies[j].FSSubjugationistRace} Subjugation</span> due to influence from its trading partner ${V.arcologies[j].name}.`); + for (const candidate of validFSes) { + if (candidate === "FSSubjugationist") { + if ((arc.FSSupremacist === "unset") || (arc.FSSupremacistRace !== arc2.FSSubjugationistRace)) { + if (arc2.FSSubjugationist > random(0, 200) - influenceBonus) { + r.push(`It <span class="yellow">adopts ${arc2.FSSubjugationistRace} Subjugation</span> due to influence from its trading partner ${arc2.name}.`); arc.FSSubjugationist = 5; - arc.FSSubjugationistRace = V.arcologies[j].FSSubjugationistRace; + arc.FSSubjugationistRace = arc2.FSSubjugationistRace; return; } } - } else if (_candidate === "FSSupremacist") { - if ((arc.FSSubjugationist === "unset") || (arc.FSSubjugationistRace !== V.arcologies[j].FSSupremacistRace)) { - if (V.arcologies[j].FSSupremacist > random(0, 200) - _influenceBonus) { - r.push(`It <span class="yellow">adopts ${V.arcologies[j].FSSupremacistRace} Supremacy</span> due to influence from its trading partner ${V.arcologies[j].name}.`); + } else if (candidate === "FSSupremacist") { + if ((arc.FSSubjugationist === "unset") || (arc.FSSubjugationistRace !== arc2.FSSupremacistRace)) { + if (arc2.FSSupremacist > random(0, 200) - influenceBonus) { + r.push(`It <span class="yellow">adopts ${arc2.FSSupremacistRace} Supremacy</span> due to influence from its trading partner ${arc2.name}.`); arc.FSSupremacist = 5; - arc.FSSupremacistRace = V.arcologies[j].FSSupremacistRace; + arc.FSSupremacistRace = arc2.FSSupremacistRace; return; } } } else { - if (V.arcologies[j][_candidate] > random(0, 200) - _influenceBonus) { - r.push(`It <span class="yellow">adopts ${FutureSocieties.displayName(_candidate)}</span> due to influence from its trading partner ${V.arcologies[j].name}.`); - arc[_candidate] = 5; + if (arc2[candidate] > random(0, 200) - influenceBonus) { + r.push(`It <span class="yellow">adopts ${FutureSocieties.displayName(candidate)}</span> due to influence from its trading partner ${arc2.name}.`); + arc[candidate] = 5; return; } } @@ -3255,24 +3243,24 @@ App.EndWeek.neighborsDevelopment = function() { default: desc = "Its citizens are"; } - let _subjugationRace; - let _supremacistRace; - switch (_validFSes.random()) { + let subjugationRace; + let supremacistRace; + switch (validFSes.random()) { case "FSSubjugationist": - _subjugationRace = setup.filterRacesLowercase.random(); - if ((arc.FSSupremacist === "unset") || (_subjugationRace !== arc.FSSupremacistRace)) { - r.push(`${desc} preoccupied by a racial animus towards ${_subjugationRace} people, leading the arcology to <span class="yellow">adopt ${_subjugationRace} Subjugation.</span>`); + subjugationRace = setup.filterRacesLowercase.random(); + if ((arc.FSSupremacist === "unset") || (subjugationRace !== arc.FSSupremacistRace)) { + r.push(`${desc} preoccupied by a racial animus towards ${subjugationRace} people, leading the arcology to <span class="yellow">adopt ${subjugationRace} Subjugation.</span>`); arc.FSSubjugationist = 5; - arc.FSSubjugationistRace = _subjugationRace; + arc.FSSubjugationistRace = subjugationRace; return; } break; case "FSSupremacist": - _supremacistRace = setup.filterRacesLowercase.random(); - if ((arc.FSSubjugationist === "unset") || (_supremacistRace !== arc.FSSubjugationistRace)) { - r.push(`${desc} preoccupied by belief in the superiority of the ${_supremacistRace} race, leading the arcology to <span class="yellow">adopt ${_supremacistRace} Supremacy.</span>`); + supremacistRace = setup.filterRacesLowercase.random(); + if ((arc.FSSubjugationist === "unset") || (supremacistRace !== arc.FSSubjugationistRace)) { + r.push(`${desc} preoccupied by belief in the superiority of the ${supremacistRace} race, leading the arcology to <span class="yellow">adopt ${supremacistRace} Supremacy.</span>`); arc.FSSupremacist = 5; - arc.FSSupremacistRace = _supremacistRace; + arc.FSSupremacistRace = supremacistRace; return; } break; -- GitLab