From 951e36ba5795b9a4df9db30c6e2573b497cf1472 Mon Sep 17 00:00:00 2001 From: Jones <Jones> Date: Thu, 31 Jan 2019 20:07:35 +0100 Subject: [PATCH] Fix for harmless but annoying Corp NaN's after end week --- src/uncategorized/neighborsDevelopment.tw | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/uncategorized/neighborsDevelopment.tw b/src/uncategorized/neighborsDevelopment.tw index e87743ebd51..b7fcf36b570 100644 --- a/src/uncategorized/neighborsDevelopment.tw +++ b/src/uncategorized/neighborsDevelopment.tw @@ -9,8 +9,10 @@ <</for>> <<set $averageProsperity = $averageProsperity/$arcologies.length>> -<<set _corpBonus = Math.trunc(1000 * Math.pow(corpValue(), 0.1)), -$corpNeighborBonus = 0>> +<<if $corpIncorporated == 1>> + <<set _corpBonus = Math.trunc(1000 * Math.pow(corpValue(), 0.1)), + $corpNeighborBonus = 0>> +<</if>> <<if $useTabs == 0>>__Arcologies in the Free City__<</if>> @@ -1908,8 +1910,10 @@ has an estimated GSP of @@.yellowgreen;<<print cashFormat(Math.trunc((0.1*$arcol <</if>> <</if>> -<<set $corpCash += $corpNeighborBonus, -$corpRev += $corpNeighborBonus>> +<<if $corpIncorporated == 1>> + <<set $corpCash += $corpNeighborBonus, + $corpRev += $corpNeighborBonus>> +<</if>> /* FUTURE SOCIETY ADOPTION */ -- GitLab