diff --git a/src/uncategorized/manageEconomy.tw b/src/uncategorized/manageEconomy.tw index c830e475c5a905ee7d624f66ca1d85905b6f3786..6538032e5544cb849f576b55b5615274c9c0cb96 100644 --- a/src/uncategorized/manageEconomy.tw +++ b/src/uncategorized/manageEconomy.tw @@ -1,6 +1,6 @@ :: Manage Economy [nobr] -<span id="globalEcon"> +<span id="economy"> @@.yellowgreen;Global Economy@@ | <<print $economy>> </span> @@ -8,7 +8,7 @@ <<set _Teconomy = $economy>> <<textbox "$economy" $economy>> <<link "Apply">> - <<set $globalEcon = Math.trunc(Number($economy)) || _Teconomy, $cheater = 1>> + <<set $economy = Math.trunc(Number($economy)) || _Teconomy, $cheater = 1>> <<replace "#economy">> @@.yellowgreen;Global Economy@@ | <<print $economy>> @@ -32,3 +32,15 @@ <</replace>> <</link>> <</if>> + +<br><br> //The Local Economy score effects some prices in your ecology. The lower the score, the higher the prices. The base score is ''100''.// +<br> The current score is +<<if $localEcon > 100>> + <<set _econPercent = Math.trunc(1000-100000/$localEcon)/10>> + reducing prices by ''<<print _econPercent>> %.'' +<<elseif $localEcon == 100>> + equal to the base score. There are no price modifications. +<<else>> + <<set _econPercent = Math.trunc(100000/$localEcon-1000)/10>> + increasing prices by ''<<print _econPercent>> %.'' +<</if>>