From 8ee3f2164b91d9955ba8b53b9739e623eda0c5ad Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Thu, 8 Oct 2020 15:00:50 -0400
Subject: [PATCH] RepX Farmyard fixes

---
 src/interaction/budgets/recordTemplates.js | 1 +
 src/uncategorized/repBudget.tw             | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/interaction/budgets/recordTemplates.js b/src/interaction/budgets/recordTemplates.js
index 9876f622f5a..c1d5764885f 100644
--- a/src/interaction/budgets/recordTemplates.js
+++ b/src/interaction/budgets/recordTemplates.js
@@ -173,6 +173,7 @@ App.Data.Records.LastWeeksRep = function() {
 	this.servantsQuarters = 0;
 	this.spa = 0;
 
+	this.shows = 0;	// e.g. Farmyard shows, etc
 	this.architecture = 0;
 
 	// Policies
diff --git a/src/uncategorized/repBudget.tw b/src/uncategorized/repBudget.tw
index cf5ede3ede7..ef2534a8043 100644
--- a/src/uncategorized/repBudget.tw
+++ b/src/uncategorized/repBudget.tw
@@ -65,7 +65,7 @@
 		<h2>Structures</h2>		/* TODO: using h2s doesn't fit in with the rest of the game */
 	</tr>
 
-	<<set _L = App.Utils.countFacilityWorkers(["arcade", "brothel", "club", "servantsQuarters", "spa"])>>
+	<<set _L = App.Utils.countFacilityWorkers(["arcade", "brothel", "club", "servantsQuarters", "spa", "farmyard"])>>
 	<<print budgetLine("arcade", "<<if $arcade>>[[capFirstChar($arcadeName)|Arcade][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>><<= capFirstChar($arcadeName)>><</if>> (_L.arcade slaves)")>>
 
 	<<print budgetLine("gloryholeArcade", "Free arcade")>>
@@ -88,6 +88,8 @@
 
 	<<print budgetLine("spa", "<<if $spa>>[[capFirstChar($spaName)|Spa][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>><<= capFirstChar($spaName)>><</if>> (_L.spa slaves)")>>
 
+	<<print budgetLine("shows", "<<if $farmyard>>[[capFirstChar($farmyardName)|Farmyard][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]<<else>>The Farmyard<</if>> (_L.farmyard slaves)")>>
+
 	<<print budgetLine("architecture", "[[Architecture|Manage Arcology][$nextButton = \"Back to Budget\", $nextLink = \"Rep Budget\"]]")>>
 
 
-- 
GitLab