diff --git a/src/SecExp/js/secExp.js b/src/SecExp/js/secExp.js index aee28142626de0a8a0ebd8772b7726cdb8e2ff94..8d9588cd3ff7fc2e790427d2325c1eda3c9d4f2c 100644 --- a/src/SecExp/js/secExp.js +++ b/src/SecExp/js/secExp.js @@ -3837,6 +3837,11 @@ App.SecExp.unit = (function() { function description(input, unitType = '') { const V = State.variables; let r = ``; if (V.SecExp.settings.unitDescriptions === 0) { + if(unitType === "Bots" && V.arcologyUpgrade.drones !== 1){ + r += `The drone security system arcoloy upgrade must be installed before drones can be deployed in battle.` + return r; + } + if (unitType !== "Bots") { r += `\n<strong>${input.platoonName}</strong> `; } else { diff --git a/src/SecExp/secBarracks.tw b/src/SecExp/secBarracks.tw index ebe740450ca412a1755b915699bc46d0aecccb00..73324ddffb9c9125b92c9670e66544e76d8a1481 100644 --- a/src/SecExp/secBarracks.tw +++ b/src/SecExp/secBarracks.tw @@ -145,25 +145,27 @@ Your current maximum number of units is <<print App.SecExp.battle.maxUnits()>> ( <br> <<= App.SecExp.unit.dec($secBots, "Bots")>> <br> -<<if $secBots.active == 1>> - <<link "Review Equipment and upgrades" "seeUnit">> - <<set $targetUnit = "secBots">> - <</link>> - <<if $secBots.troops < $secBots.maxTroops>> - | - <<link "Replenish the unit" "secBarracks">> +<<if $arcologyUpgrade.drones == 1>> + <<if $secBots.active == 1>> + <<link "Review Equipment and upgrades" "seeUnit">> + <<set $targetUnit = "secBots">> + <</link>> + <<if $secBots.troops < $secBots.maxTroops>> + | + <<link "Replenish the unit" "secBarracks">> + <<run cashX(forceNeg(($secBots.maxTroops - $secBots.troops) * $secBotsCost), "securityExpansion")>> + <<set $secBots.troops = $secBots.maxTroops>> + <</link>> + <</if>> + <<else>> + <<link "Rebuild the unit" "secBarracks">> <<run cashX(forceNeg(($secBots.maxTroops - $secBots.troops) * $secBotsCost), "securityExpansion")>> <<set $secBots.troops = $secBots.maxTroops>> + <<set $secBots.active = 1>> <</link>> <</if>> -<<else>> - <<link "Rebuild the unit" "secBarracks">> - <<run cashX(forceNeg(($secBots.maxTroops - $secBots.troops) * $secBotsCost), "securityExpansion")>> - <<set $secBots.troops = $secBots.maxTroops>> - <<set $secBots.active = 1>> - <</link>> <</if>> - + <br><br>__Slaves__ <br>/* slaves */ You are free to organize your menial slaves into fighting units. Currently you have <<print num($menials)>> slaves available, while <<print num($slavesEmployedManpower)>> are already employed as soldiers. During all your battles you lost a total of <<print num($slavesTotalCasualties)>>.