Skip to content
Snippets Groups Projects
Commit 4cad6791 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

Fix negative display of Costs during end week

parent 9914fbed
No related branches found
No related tags found
1 merge request!3341Finish cashX
...@@ -806,7 +806,7 @@ Routine upkeep of your demesne costs @@.yellow;<<print cashFormat($costs)>>.@@ ...@@ -806,7 +806,7 @@ Routine upkeep of your demesne costs @@.yellow;<<print cashFormat($costs)>>.@@
<br>@@.red;Error, costs is NaN@@ <br>@@.red;Error, costs is NaN@@
<</if>> <</if>>
<<set $costs = (getCost($slaves)*-1)>> /*overwrite the prediction and actually pay the bill. GetCost should return a negative.*/ <<set $costs = Math.abs(getCost($slaves))>> /*overwrite the prediction and actually pay the bill. GetCost should return a negative.*/
<<if $secExp == 1>> <<if $secExp == 1>>
<<if $weapManu == 1>> <<if $weapManu == 1>>
......
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