diff --git a/src/uncategorized/BackwardsCompatibility.tw b/src/uncategorized/BackwardsCompatibility.tw index 08c459055c587d2ab2f973b746bc62a7b9f38c42..4d20f9ed370ff8b4598066b30d78fe39f1ffb5ab 100644 --- a/src/uncategorized/BackwardsCompatibility.tw +++ b/src/uncategorized/BackwardsCompatibility.tw @@ -3398,6 +3398,11 @@ Setting missing slave variables: <<run SlaveDatatypeCleanup(_Slave)>> +<<set _leaderIdx = $leaders.findIndex(function(s) { return s.ID === _Slave.ID; })>> +<<if _leaderIdx !== -1>> + <<set $leaders[_leaderIdx] = _Slave>> +<</if>> + <<set $slaves[_bci] = _Slave>> <</for>> diff --git a/src/uncategorized/persBusiness.tw b/src/uncategorized/persBusiness.tw index b0ee2687ada175342b488d09a9b6881e03e0c76b..27797fdaca14491ea165a705c3efae57790faf53 100644 --- a/src/uncategorized/persBusiness.tw +++ b/src/uncategorized/persBusiness.tw @@ -653,7 +653,7 @@ <<if $cash > 1000>> This week you gave up business opportunities worth <<print cashFormat($policyCost)>> to help deserving citizens, @@.green;burnishing your reputation.@@ <<set $rep += 100>> - <<run cashX(foceNeg($policyCost), "policies")>> + <<run cashX(forceNeg($policyCost), "policies")>> <<if $PC.degeneracy > 1>> This also helps @@.green;offset any rumors@@ about your private actions. <<set $PC.degeneracy -= 1>> @@ -666,7 +666,7 @@ <<if $cash > 5000>> This week you paid <<print cashFormat($policyCost)>> to have positive rumors spread about you, @@.green;making you look good<<if $PC.degeneracy > 1>> and weakening existing undesirable rumors<<set $PC.degeneracy -= 2>><</if>>.@@ <<set $rep += 50>> - <<run cashX(foceNeg($policyCost), "policies")>> + <<run cashX(forceNeg($policyCost), "policies")>> <<else>> You lacked enough extra ¤ to pay people to spread positive rumors about you this week. <</if>>