diff --git a/src/js/utilJS.js b/src/js/utilJS.js index 96e0fa7c84c4e99163590bb77e91a1b06c78a528..f5e2d7ce7e911319b0b0493bdd2366d8baeebd20 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -1226,7 +1226,7 @@ window.budgetLine = function(category, title) { expenses = "$lastWeeksRepExpenses"; profits = "$lastWeeksRepProfits"; - return `<<if ${income}.${category} || ${expenses}.${category}>><tr>\ + return `<<if ${income}.${category} || ${expenses}.${category} || $showAllEntries.repBudget>><tr>\ <td>${title}</td>\ <td><<print repFormat(${income}.${category})>></td>\ <td><<print repFormat(${expenses}.${category})>></td>\ @@ -1238,7 +1238,7 @@ window.budgetLine = function(category, title) { expenses = "$lastWeeksCashExpenses"; profits = "$lastWeeksCashProfits"; - return `<<if ${income}.${category} || ${expenses}.${category}>><tr>\ + return `<<if ${income}.${category} || ${expenses}.${category} || $showAllEntries.costsBudget>><tr>\ <td>${title}</td>\ <td>\ <<if (${income}.${category}) > 0>>\ diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index b7f36759e89bd269eb936e3bac712f91799a11eb..29df7d3a0137cd92f304dd4588f77e19ea1efc9c 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -8,6 +8,9 @@ <<set $lastWeeksCashProfits.Total = 0>> <</if>> +<<if ndef $showAllEntries>> + <<set $showAllEntries = {costsBudget: 0, repBudget: 0}>> +<</if>> //Here you can view many of the financial details of your arcology, <<= properTitle()>>. The detailed list of slaves and their costs (food, hormones) that you may remember can now be found in the "Slave maintenance" link. Other links will allow you to directly control areas of your arcology to adjust spending to suit your tastes.// @@ -63,6 +66,10 @@ <</if>> //Your weekly costs are as follows:// +<<options $showAllEntries.costsBudget>> + <<option 0 "Normal">> + <<option 1 "Show Empty Entries">> +<</options>> /* Table of Totals */ <<if ndef $lastWeeksCashIncome>> @@ -116,25 +123,25 @@ for (var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <h2>Structures</h2> </tr> - <<print budgetLine("brothel", "[[$brothelNameCaps|Brothel][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($brothelSlaves slaves)")>> + <<print budgetLine("brothel", "<<if $brothel>>[[$brothelNameCaps|Brothel][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$brothelNameCaps<</if>> ($brothelSlaves slaves)")>> <<print budgetLine("whoreBrothel", "Brothel whores")>> - <<print budgetLine("brothelAds", "[[Brothel ads|Brothel Advertisement][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] also increase the income of whoring slaves in \"jobs.\"")>> + <<print budgetLine("brothelAds", "<<if $brothel>>[[Brothel ads|Brothel Advertisement][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>Brothel ads<</if>> also increase the income of whoring slaves in \"jobs.\"")>> <<if $brothel > 0>> <br> <</if>> - <<print budgetLine("club", "[[$clubNameCaps|Club][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($clubSlaves slaves)")>> + <<print budgetLine("club", "<<if $club>>[[$clubNameCaps|Club][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$clubNameCaps<</if>> ($clubSlaves slaves)")>> - <<print budgetLine("clubAds", "[[Club ads|Club Advertisement][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]")>> + <<print budgetLine("clubAds", "<<if $club>>[[Club ads|Club Advertisement][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>Club ads<</if>>")>> <<if $club > 0>> <br> <</if>> - <<print budgetLine("arcade", "[[$arcadeNameCaps|Arcade][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($arcadeSlaves slaves)")>> + <<print budgetLine("arcade", "<<if $arcade>>[[$arcadeNameCaps|Arcade][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$arcadeNameCaps<</if>> ($arcadeSlaves slaves)")>> <<print budgetLine("gloryholeArcade", "Arcade slaves")>> @@ -142,7 +149,7 @@ for (var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <br> <</if>> - <<print budgetLine("dairy", "[[$dairyNameCaps|Dairy][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($dairySlaves slaves)")>> + <<print budgetLine("dairy", "<<if $dairy>>[[$dairyNameCaps|Dairy][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$dairyNameCaps<</if>> ($dairySlaves slaves)")>> <<print budgetLine("milkedDairy", "Dairy cows")>> @@ -150,27 +157,27 @@ for (var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <br> <</if>> - <<print budgetLine("servantsQuarters", "[[Servants' Quarters][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($servantsQuartersSlaves slaves)")>> + <<print budgetLine("servantsQuarters", "<<if $servantsQuarters>>[[Servants' Quarters][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>Servants' Quarters<</if>> ($servantsQuartersSlaves slaves)")>> - <<print budgetLine("masterSuite", "[[Master Suite][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($masterSuiteSlaves slaves)")>> + <<print budgetLine("masterSuite", "<<if $masterSuite>>[[Master Suite][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>Master Suite<</if>> ($masterSuiteSlaves slaves)")>> - <<print budgetLine("school", "[[$schoolroomNameCaps|Schoolroom][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($schoolroomSlaves slaves)")>> + <<print budgetLine("school", "<<if $school>>[[$schoolroomNameCaps|Schoolroom][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$schoolroomNameCaps<</if>> ($schoolroomSlaves slaves)")>> - <<print budgetLine("spa", "[[$spaNameCaps|Spa][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($spaSlaves slaves)")>> + <<print budgetLine("spa", "<<if $spa>>[[$spaNameCaps|Spa][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$spaNameCaps<</if>> ($spaSlaves slaves)")>> - <<print budgetLine("clinic", "[[$clinicNameCaps|Clinic][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($clinicSlaves slaves)")>> + <<print budgetLine("clinic", "<<if $clinic>>[[$clinicNameCaps|Clinic][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$clinicNameCaps<</if>> ($clinicSlaves slaves)")>> - <<print budgetLine("cellblock", "[[$cellblockNameCaps|Cellblock][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($cellblockSlaves slaves)")>> + <<print budgetLine("cellblock", "<<if $cellblock>>[[$cellblockNameCaps|Cellblock][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$cellblockNameCaps<</if>> ($cellblockSlaves slaves)")>> - <<print budgetLine("lab", "[[Prosthetic Lab][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] maintenance")>> + <<print budgetLine("lab", "<<if $lab>>[[Prosthetic Lab][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>Prosthetic Lab<</if>> maintenance")>> - <<print budgetLine("incubator", "[[$incubatorNameCaps|Incubator][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($incubatorSlaves slaves)")>> + <<print budgetLine("incubator", "<<if $incubator>>[[$incubatorNameCaps|Incubator][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$incubatorNameCaps<</if>> ($incubatorSlaves slaves)")>> - <<print budgetLine("nursery", "[[$nurseryNameCaps|Nursery][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($nurserySlaves slaves)")>> + <<print budgetLine("nursery", "<<if $nursery>>[[$nurseryNameCaps|Nursery][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$nurseryNameCaps<</if>> ($nurserySlaves slaves)")>> - <<print budgetLine("farmyard", "[[$farmyardNameCaps|Farmyard][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($farmyardSlaves slaves)")>> + <<print budgetLine("farmyard", "<<if $farmyard>>[[$farmyardNameCaps|Farmyard][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$farmyardNameCaps<</if>> ($farmyardSlaves slaves)")>> - <<print budgetLine("pit", "[[$pitNameCaps|Pit][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]] ($fighterIDs.length slaves)")>> + <<print budgetLine("pit", "<<if $pit>>[[$pitNameCaps|Pit][$nextButton = \"Back to Budget\", $nextLink = \"Costs Budget\"]]<<else>>$pitNameCaps<</if>> ($fighterIDs.length slaves)")>> <<print budgetLine("environment", "Environment")>> @@ -315,7 +322,7 @@ for (var i = 0; i < State.variables.lastWeeksCashIncome.length; i++){ <<print budgetLine("specialForces", "Special forces")>> - <<print budgetLine("undermining", "Undermine political support for the nearby old world peacekeeping mission.")>> + <<print budgetLine("peacekeepers", "Peacekeepers<<if State.variables.peacekeepers.undermining !== 0>>, including undermining<</if>>")>> <tr><td></td></tr> diff --git a/src/uncategorized/repBudget.tw b/src/uncategorized/repBudget.tw index cfb41e6cdd3d3275b078c971780ab51008f8c24e..75e8f0b2c42cac060923421185b27c44ecbd5aab 100644 --- a/src/uncategorized/repBudget.tw +++ b/src/uncategorized/repBudget.tw @@ -11,12 +11,20 @@ <<set $lastWeeksRepProfits.Total = 0>> <</if>> +<<if ndef $showAllEntries>> + <<set $showAllEntries = {costsBudget: 0, repBudget: 0}>> +<</if>> + <br> //Reputation is a difficult thing to quantify, <<= properTitle()>>. Here you see an overview of topics that interest people in the arcology, and in turn, reflect on your own reputation. The more symbols you see in a category, the more impact that category is having on your reputation lately.// <br style="clear:both"><<if $lineSeparations == 0>><br><<else>><hr style="margin:0"><</if>> <br> //Your weekly reputation changes are as follows:// +<<options $showAllEntries.repBudget>> + <<option 0 "Normal">> + <<option 1 "Show Empty Entries">> +<</options>> /* Table of Totals */ <<if ndef $lastWeeksRepIncome>> @@ -67,27 +75,27 @@ for (var i = 0; i < State.variables.lastWeeksRepIncome.length; i++){ <h2>Structures</h2> /* TODO: using h2s doesn't fit in with the rest of the game */ </tr> - <<print budgetLine("arcade", "[[$arcadeNameCaps|Arcade][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]] ($arcadeSlaves slaves)")>> + <<print budgetLine("arcade", "<<if $arcade>>[[$arcadeNameCaps|Arcade][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>$arcadeNameCaps<</if>> ($arcadeSlaves slaves)")>> <<print budgetLine("gloryholeArcade", "Free arcade")>> - <<print budgetLine("brothel", "[[$brothelNameCaps|Brothel][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]] ($brothelSlaves slaves)")>> + <<print budgetLine("brothel", "<<if $brothel>>[[$brothelNameCaps|Brothel][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>$brothelNameCaps<</if>> ($brothelSlaves slaves)")>> - <<print budgetLine("club", "[[$clubNameCaps|Club][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]] ($clubSlaves slaves)")>> + <<print budgetLine("club", "<<if $club>>[[$clubNameCaps|Club][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>$clubNameCaps<</if>> ($clubSlaves slaves)")>> <<print budgetLine("publicServantClub", "Club servants")>> - <<print budgetLine("clubAds", "[[Club ads|Club Advertisement][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]")>> + <<print budgetLine("clubAds", "<<if $club>>[[Club ads|Club Advertisement][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>$clubNameCaps<</if>>")>> <<if $club > 0>> <br> <</if>> - <<print budgetLine("pit", "[[$pitNameCaps|Pit][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]] ($fighterIDs.length slaves)")>> + <<print budgetLine("pit", "<<if $pit>>[[$pitNameCaps|Pit][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>$pitNameCaps<</if>> ($fighterIDs.length slaves)")>> - <<print budgetLine("servantsQuarters", "[[Servants' Quarters][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]] ($servantsQuartersSlaves slaves)")>> + <<print budgetLine("servantsQuarters", "<<if $servantsQuarters>>[[Servants' Quarters][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>Servants' Quarters<</if>> ($servantsQuartersSlaves slaves)")>> - <<print budgetLine("spa", "[[$spaNameCaps|Spa][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]] ($spaSlaves slaves)")>> + <<print budgetLine("spa", "<<if $spa>>[[$spaNameCaps|Spa][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>$spaNameCaps<</if>> ($spaSlaves slaves)")>> <<print budgetLine("architecture", "[[Architecture|Manage Arcology][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]")>>