Skip to content
Snippets Groups Projects
Commit f8f5ce80 authored by x's avatar x
Browse files

Compiler and secBarrakcs GUI fixes

parent 434ef08b
No related branches found
No related tags found
No related merge requests found
......@@ -257,8 +257,9 @@ You are free to organize your menial slaves into fighting units. Currently you h
<<set $targetUnit = "slaveUnits">>
<<set $targetIndex = _i>>
<</link>>
|
<<if $slaveUnits[_i].troops < $slaveUnits[_i].maxTroops && $helots > 0>>
|
<<link "Replenish unit" "secBarracks">>
<<if $helots >= $slaveUnits[_i].maxTroops - $slaveUnits[_i].troops>>
<<set $helots -= $slaveUnits[_i].maxTroops - $slaveUnits[_i].troops>>
......@@ -292,8 +293,9 @@ You are free to organize your menial slaves into fighting units. Currently you h
<<set $slaveUnits = _newSlaveUnits>>
<<set $activeUnits-->>
<</link>>
|
<<if $helots > 0>>
|
<<link "Reform the unit" "secBarracks">>
<<if $helots >= $slaveUnits[_i].maxTroops>>
<<set $slavesEmployedManpower += $slaveUnits[_i].maxTroops>>
......@@ -405,8 +407,9 @@ __Militia__
<<set $targetUnit = "militiaUnits">>
<<set $targetIndex = _i>>
<</link>>
|
<<if $militiaUnits[_i].troops < $militiaUnits[_i].maxTroops && $militiaFreeManpower > 0>>
|
<<link "Replenish unit" "secBarracks">>
<<if $militiaFreeManpower >= $militiaUnits[_i].maxTroops - $militiaUnits[_i].troops>>
<<set $militiaFreeManpower -= $militiaUnits[_i].maxTroops - $militiaUnits[_i].troops>>
......@@ -441,8 +444,9 @@ __Militia__
<<set $militiaUnits = _newMilitiaUnits>>
<<set $activeUnits-->>
<</link>>
|
<<if $militiaFreeManpower > 0>>
|
<<link "Reform the unit" "secBarracks">>
<<if $militiaFreeManpower >= $militiaUnits[_i].maxTroops>>
<<set $militiaEmployedManpower += $militiaUnits[_i].maxTroops>>
......@@ -553,8 +557,9 @@ __Mercenaries__
<<set $targetUnit = "mercUnits">>
<<set $targetIndex = _i>>
<</link>>
|
<<if $mercUnits[_i].troops < $mercUnits[_i].maxTroops && $mercFreeManpower > 0>>
|
<<link "Replenish unit" "secBarracks">>
<<if $mercFreeManpower >= $mercUnits[_i].maxTroops - $mercUnits[_i].troops>>
<<set $mercFreeManpower -= $mercUnits[_i].maxTroops - $mercUnits[_i].troops>>
......@@ -588,8 +593,9 @@ __Mercenaries__
<<set $mercUnits = _newMercUnits>>
<<set $activeUnits-->>
<</link>>
|
<<if $mercFreeManpower > 0>>
|
<<link "Reform the unit" "secBarracks">>
<<if $mercFreeManpower >= $mercUnits[_i].maxTroops>>
<<set $mercEmployedManpower += $mercUnits[_i].maxTroops>>
......
......@@ -1074,7 +1074,6 @@ A screen opposite your desk springs to life, <<if $assistant == 0>>showing your
are extremely grateful, though they would be less hopeful if they knew the true nature of the aircraft coming to retrieve them.
<<set $PAid = 1>>
<<set $cash -= _price>>
<</if>>
<</replace>>
<</link>> //This will cost <<print cashFormat(_price)>>//
......
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