From 9f7ad7410c8c4ce167a30837f88858629d4b524e Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Sun, 10 Mar 2019 20:24:39 -0400 Subject: [PATCH] hide barracks link in budget if no barracks --- src/uncategorized/costsBudget.tw | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 15d5f6621ab..13044d09ea0 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -250,9 +250,11 @@ for(var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <<print budgetLine("privateOrphanage", "Private tutelage of $privateOrphanageTotal of your slaves\' children")>> - <<print budgetLine("mercenaries", "Security: [[$mercenariesTitle|Barracks][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] - <<if $barracks>><<else>><br>//@@.red;Cost increased by the lack of an armory to house them.@@//<</if>> - <<if ($PC.warfare >= 100) || ($PC.career == \"arcology owner\")>><br>//Cost reduced by your @@.springgreen;mercenary contacts.@@//<</if>>")>> + <<print budgetLine("mercenaries", + "Security: <<if $barracks>>[[$mercenariesTitle|Barracks][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] + <<else>>Mercenaries<br>//@@.red;Cost increased by the lack of an armory to house them.@@//<</if>> + <<if ($PC.warfare >= 100) || ($PC.career == \"arcology owner\")>><br>//Cost reduced by your @@.springgreen;mercenary contacts.@@//<</if>> + ")>> <<print budgetLine("securityExpansion", "Security expansion")>> -- GitLab