diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt index e218df1664f8b1a13679a0b66577470bb36f369a..1d417f82fb4387b5576618ac21daeea8763d110b 100644 --- a/devNotes/twine JS.txt +++ b/devNotes/twine JS.txt @@ -2083,7 +2083,7 @@ window.getCost = function(array) { } if(State.variables.SFMODToggle === 1 && State.variables.SubsidyActive === 1) { - costs += ((100000*(State.variables.SFTroops/10))*1+(State.variables.arcologies[0].prosperity/100)*1+(State.variables.SFU/100)); + costs += Math.ceil((1000*(State.variables.SFTroops/10))*1+(State.variables.arcologies[0].prosperity/100)*1+(State.variables.SFU/100)); } // clean up diff --git a/src/js/economyJS.tw b/src/js/economyJS.tw index 92cf814e2870825f812e4aade99e1f9d4ddb7307..583d7888a21862f02deaaf99f4f88497e285b416 100644 --- a/src/js/economyJS.tw +++ b/src/js/economyJS.tw @@ -317,7 +317,7 @@ window.getCost = function(array) { } if(State.variables.SFMODToggle === 1 && State.variables.SubsidyActive === 1) { - costs += ((100000*(State.variables.SFTroops/10))*1+(State.variables.arcologies[0].prosperity/100)*1+(State.variables.SFU/100)); + costs += Math.ceil((1000*(State.variables.SFTroops/10))*1+(State.variables.arcologies[0].prosperity/100)*1+(State.variables.SFU/100)); } // clean up diff --git a/src/uncategorized/costsReport.tw b/src/uncategorized/costsReport.tw index acc1fadba3d399e94bd14525b5a32b32613407e3..e9dfaffc6909e247c11f32cfb15b05c9067c4034 100644 --- a/src/uncategorized/costsReport.tw +++ b/src/uncategorized/costsReport.tw @@ -48,7 +48,7 @@ <</if>> <<if $SFMODToggle === 1 && $SubsidyActive === 1>> - <<print cashFormat(((100000*(V.SFTroops/10))*1+(V.arcologies[0].prosperity/100)*1+(V.SFU/100)))>> to support $securityForceName untill it becomes self-sufficient. + <br>__$SFNameCaps subsidy:__ <<print cashFormat(Math.ceil((10000*($SFTroops/10))*1+($arcologies[0].prosperity/100)*1+($SFU/100)))>> <</if>> <<if $mercenaries > 0>> <<set _mercCosts = $mercenaries*2000>>