diff --git a/src/uncategorized/persBusiness.tw b/src/uncategorized/persBusiness.tw index 27ef410d36ef9e015e0a72c768f1e1e74f897033..8850948ab1198205d6f5ac0e0472290ad82f0504 100644 --- a/src/uncategorized/persBusiness.tw +++ b/src/uncategorized/persBusiness.tw @@ -388,7 +388,7 @@ <<set $proclamationsCooldown = 4, $personalAttention = "business">> <</if>> - + <<if $PC.actualAge >= $IsInPrimePC && $PC.actualAge < $IsPastPrimePC>> <<set _Cal = Math.ceil(random($AgeTrainingLowerBoundPC,$AgeTrainingUpperBoundPC)*$AgeEffectOnTrainerEffectivenessPC)>> <<set _X = 1>> @@ -470,7 +470,7 @@ <<case "slaving">> <<set _oldSkill = $PC.slaving>> - <<if _X == 1>> + <<if _X == 1>> <<set $PC.slaving += _Cal>> <<else>> <<set $PC.slaving -= _Cal>> @@ -504,7 +504,7 @@ <<case "engineering">> <<set _oldSkill = $PC.engineering>> - <<if _X == 1>> + <<if _X == 1>> <<set $PC.engineering += _Cal>> <<else>> <<set $PC.engineering -= _Cal>> @@ -572,7 +572,7 @@ <<case "hacking">> <<set _oldSkill = $PC.hacking>> - <<if _X == 1>> + <<if _X == 1>> <<set $PC.hacking += _Cal>> <<else>> <<set $PC.hacking -= _Cal>> @@ -603,7 +603,7 @@ You have made progress towards mastering hacking and data manipulation. <</if>> <</if>> - + <<case "technical accidents">> /* needs work */ <<set _windfall = (150*$PC.hacking)+random(100,2500), _X = 0>> <<if $PC.hacking == -100>> @@ -625,18 +625,18 @@ <<elseif $PC.hacking >= 100>> <<set _Catchtchance = 100>> <</if>> - This week your services to the highest bidder earned you @@.yellowgreen;<<print cashFormat(_windfall)>>.@@ - <<if random(0,100) >= _Catchtchance>> - However, since the source of the attack was traced back to your arcology, your - <<if $secExp == 1>> <<set _X = 1>> + This week your services to the highest bidder earned you @@.yellowgreen;<<print cashFormat(_windfall)>>.@@ + <<if random(0,100) >= _Catchtchance>> + However, since the source of the attack was traced back to your arcology, your + <<if $secExp == 1>> <<set _X = 1>> @@.red;authority@@, <<set $authority -= random(100,500)>> @@.red;crime rate@@ <<set $crime += random(10,25)>> and - <</if>> - @@.red;reputation@@ <<set $rep -= random (100,500)>> - <<if _X != 1>> - has - <<else>> + <</if>> + @@.red;reputation@@ <<set $rep -= random (100,500)>> + <<if _X != 1>> + has + <<else>> have all - <</if>> + <</if>> been negatively affected. <</if>> <<if $PC.hacking < 100>> @@ -770,7 +770,7 @@ Routine upkeep of your demesne costs @@.yellow;<<print cashFormat($costs)>>.@@ <<if $cash > 0>> <<set $cash -= $seed>> <<elseif $arcologies[0].FSRestartDecoration == 100>> - Since you lack the resources to effect prompt repairs yourself, the Societal Elite cover for you. The arcology's prosperity is @@.red;is damaged@@, but your public reputation is left intact. + Since you lack the resources to effect prompt repairs yourself, the Societal Elite cover for you. The arcology's prosperity is @@.red;is damaged@@, but your public reputation is left intact. <<if $eugenicsFullControl != 1>> The Societal Elite @@.red;are troubled by your failure@@. <<set $failedElite += 100>> @@ -851,8 +851,8 @@ Routine upkeep of your demesne costs @@.yellow;<<print cashFormat($costs)>>.@@ <</if>> <<if $taxTrade == 1>> - <br>Fees on transitioning goods this week made @@.yellowgreen;<<print cashFormat($trade * random(80,120))>>.@@ - <<set $cash += $trade * 100>> + <br>Fees on transitioning goods this week made @@.yellowgreen;<<print cashFormat(Math.ceil($trade * random(80,120)))>>.@@ + <<set $cash += Math.ceil($trade * 100)>> <</if>> <</if>>