diff --git a/src/endWeek/economics/persBusiness.js b/src/endWeek/economics/persBusiness.js index 3354893d34c9f734073056b3f11b0d2982aec699..e7ba928725aec11b8e60ff95e139659b8dc70681 100644 --- a/src/endWeek/economics/persBusiness.js +++ b/src/endWeek/economics/persBusiness.js @@ -53,7 +53,7 @@ App.EndWeek.personalBusiness = function() { } else { r.push(`You have finally recovered from your injuries.`); } - } else if ((V.personalAttention === "whoring")) { + } else if (V.personalAttention === "whoring") { income = random(2000, 4500); if (V.PC.belly >= 1500) { if (V.arcologies[0].FSRepopulationFocus !== "unset") { @@ -105,7 +105,7 @@ App.EndWeek.personalBusiness = function() { } } V.enduringRep *= .5; - } else if ((V.personalAttention === "upkeep")) { + } else if (V.personalAttention === "upkeep") { if (V.PC.belly >= 5000) { r.push(`You spend your free time hustling around your penthouse, cleaning and making sure everything is in order. You manage to reduce your upkeep by 20%. Your`); if (V.PC.preg > 0) { @@ -120,13 +120,13 @@ App.EndWeek.personalBusiness = function() { r.push(`This is much easier to do without a big baby bump in the way.`); } } - } else if ((V.personalAttention === "defensive survey")) { + } else if (V.personalAttention === "defensive survey") { r.push(`This week you focus on surveying your defenses in person, <span class="green">making yourself more known throughout ${V.arcologies[0].name}.</span>`); repX(50 * V.PC.skill.warfare, "personalBusiness"); if (V.PC.skill.warfare < 100) { r.push(`${IncreasePCSkills('warfare', 0.5)}`); } - } else if ((V.personalAttention === "development project")) { + } else if (V.personalAttention === "development project") { if ((V.arcologies[0].prosperity + 1 * (1 + Math.ceil(V.PC.skill.engineering / 100))) < V.AProsperityCap) { r.push(`This week you focus on contributing to a local development project, <span class="green">boosting prosperity.</span>`); V.arcologies[0].prosperity += 1 * (1 + Math.ceil(V.PC.skill.engineering / 100)); @@ -137,9 +137,9 @@ App.EndWeek.personalBusiness = function() { r.push(`Contributing to a local development project this week <span class="yellow">would be futile.</span>`); V.personalAttention = "business"; } - } else if ((V.personalAttention === "proclamation")) { + } else if (V.personalAttention === "proclamation") { /* handled after this if chain */ - } else if ((V.personalAttention === "smuggling")) { + } else if (V.personalAttention === "smuggling") { const qualifiedFS = []; if (V.arcologies[0].FSDegradationistDecoration >= 80) { qualifiedFS.push("degradationist"); @@ -487,7 +487,7 @@ App.EndWeek.personalBusiness = function() { } FutureSocieties.Change("RomanRevivalist", 2); } - } else if ((V.cash > 1000)) { + } else if (V.cash > 1000) { income = Math.trunc(Math.min(3000 * Math.log(V.cash), V.cash * 0.07)); r.push(`This week, your business endeavors made you <span class="yellowgreen">${cashFormat(income)}.</span>`); cashX(income, "personalBusiness");