diff --git a/src/endWeek/economics/neighborsDevelopment.js b/src/endWeek/economics/neighborsDevelopment.js index 15058b22aca264535c571a1e121c038841d97d3a..0684c421f16462bf0c4c46a145f6dc90f4d71dec 100644 --- a/src/endWeek/economics/neighborsDevelopment.js +++ b/src/endWeek/economics/neighborsDevelopment.js @@ -122,7 +122,9 @@ App.EndWeek.neighborsDevelopment = function() { } r.push(`A controlling interest has been taken by a single individual, leaving the arcology ruled like yours is.`); V.arcologies[V.i].government = "an individual"; - V.arcologies[V.i].ownership = random(51, 61), V.arcologies[V.i].minority = 100 - V.arcologies[V.i].ownership - random(1, 19), V.arcologies[V.i].honeymoon += 10; + V.arcologies[V.i].ownership = random(51, 61); + V.arcologies[V.i].minority = 100 - V.arcologies[V.i].ownership - random(1, 19); + V.arcologies[V.i].honeymoon += 10; } else if ((V.arcologies[V.i].government !== "your trustees") && (V.arcologies[V.i].government !== "your agent") && (V.arcologies[V.i].ownership < V.arcologies[V.i].PCminority) && (V.arcologies[V.i].direction !== 0) && (V.arcologies[V.i].rival !== 1)) { r.push(`undergoing a leadership struggle in which you are deeply concerned, since you now own more of it than its current leadership.`); if (random(0, 10) < V.arcologies[V.i].PCminority - V.arcologies[V.i].ownership) { @@ -365,7 +367,8 @@ App.EndWeek.neighborsDevelopment = function() { _redHanded = 1; repX(forceNeg(random(100, 200)), "war"); if (V.secExpEnabled > 0) { - V.SecExp.core.authority -= random(100, 500)*V.arcologies[0].CyberEconomic, V.SecExp.core.crimeLow += random(10, 25); + V.SecExp.core.authority -= random(100, 500)*V.arcologies[0].CyberEconomic; + V.SecExp.core.crimeLow += random(10, 25); } V.arcologies[0].prosperity = Math.clamp(V.arcologies[0].prosperity, 1, V.AProsperityCap); } @@ -411,7 +414,8 @@ App.EndWeek.neighborsDevelopment = function() { _redHanded = 1; repX(forceNeg(random(100, 200)), "war"); if (V.secExpEnabled > 0) { - V.SecExp.core.authority -= random(100, 500)*V.arcologies[0].CyberReputation, V.SecExp.core.crimeLow += random(10, 25); + V.SecExp.core.authority -= random(100, 500)*V.arcologies[0].CyberReputation; + V.SecExp.core.crimeLow += random(10, 25); } V.arcologies[0].prosperity = Math.clamp(V.arcologies[0].prosperity, 1, 300); } @@ -447,7 +451,7 @@ App.EndWeek.neighborsDevelopment = function() { V.arcologies[j].prosperity -= V.arcologies[j].embargo*2; } V.arcologies[V.i].prosperity = Math.clamp(V.arcologies[V.i].prosperity, 1, 300); - r.push(`${V.arcologies[j].name} targets V.arcologies[V.i].name for <span class="red">economic warfare.</span>`); + r.push(`${V.arcologies[j].name} targets ${V.arcologies[V.i].name} for <span class="red">economic warfare.</span>`); } } @@ -2035,11 +2039,13 @@ App.EndWeek.neighborsDevelopment = function() { 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) { r.push(`Your misinformation campaign against it in the old world media was successful. Before long, everyone in the Free City is confident that you're somehow responsible, <span class="green">greatly improving your reputation.</span>`); - V.peacekeepers = 0, V.peacekeepersGone = 1; + V.peacekeepers = 0; + V.peacekeepersGone = 1; repX(2000, "peacekeepers"); } else { r.push(`The cost was ultimately too high. The time when old world countries could afford to waste billions on military adventurism is gone. It will not return.`); - V.peacekeepers = 0, V.peacekeepersGone = 1; + V.peacekeepers = 0; + V.peacekeepersGone = 1; } } else { r.push(`There's a peacekeeping force led by General ${V.peacekeepers.generalName} in the troubled area near the Free City.`);