Skip to content
Snippets Groups Projects
Commit 4123c51b authored by lowercasedonkey's avatar lowercasedonkey
Browse files

more doubles

parent f5b0b5e0
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ App.EndWeek.personalBusiness = function() { ...@@ -53,7 +53,7 @@ App.EndWeek.personalBusiness = function() {
} else { } else {
r.push(`You have finally recovered from your injuries.`); r.push(`You have finally recovered from your injuries.`);
} }
} else if ((V.personalAttention === "whoring")) { } else if (V.personalAttention === "whoring") {
income = random(2000, 4500); income = random(2000, 4500);
if (V.PC.belly >= 1500) { if (V.PC.belly >= 1500) {
if (V.arcologies[0].FSRepopulationFocus !== "unset") { if (V.arcologies[0].FSRepopulationFocus !== "unset") {
...@@ -105,7 +105,7 @@ App.EndWeek.personalBusiness = function() { ...@@ -105,7 +105,7 @@ App.EndWeek.personalBusiness = function() {
} }
} }
V.enduringRep *= .5; V.enduringRep *= .5;
} else if ((V.personalAttention === "upkeep")) { } else if (V.personalAttention === "upkeep") {
if (V.PC.belly >= 5000) { 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`); 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) { if (V.PC.preg > 0) {
...@@ -120,13 +120,13 @@ App.EndWeek.personalBusiness = function() { ...@@ -120,13 +120,13 @@ App.EndWeek.personalBusiness = function() {
r.push(`This is much easier to do without a big baby bump in the way.`); 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>`); 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"); repX(50 * V.PC.skill.warfare, "personalBusiness");
if (V.PC.skill.warfare < 100) { if (V.PC.skill.warfare < 100) {
r.push(`${IncreasePCSkills('warfare', 0.5)}`); 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) { 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>`); 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)); V.arcologies[0].prosperity += 1 * (1 + Math.ceil(V.PC.skill.engineering / 100));
...@@ -137,9 +137,9 @@ App.EndWeek.personalBusiness = function() { ...@@ -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>`); r.push(`Contributing to a local development project this week <span class="yellow">would be futile.</span>`);
V.personalAttention = "business"; V.personalAttention = "business";
} }
} else if ((V.personalAttention === "proclamation")) { } else if (V.personalAttention === "proclamation") {
/* handled after this if chain */ /* handled after this if chain */
} else if ((V.personalAttention === "smuggling")) { } else if (V.personalAttention === "smuggling") {
const qualifiedFS = []; const qualifiedFS = [];
if (V.arcologies[0].FSDegradationistDecoration >= 80) { if (V.arcologies[0].FSDegradationistDecoration >= 80) {
qualifiedFS.push("degradationist"); qualifiedFS.push("degradationist");
...@@ -487,7 +487,7 @@ App.EndWeek.personalBusiness = function() { ...@@ -487,7 +487,7 @@ App.EndWeek.personalBusiness = function() {
} }
FutureSocieties.Change("RomanRevivalist", 2); 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)); 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>`); r.push(`This week, your business endeavors made you <span class="yellowgreen">${cashFormat(income)}.</span>`);
cashX(income, "personalBusiness"); cashX(income, "personalBusiness");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment