From 00201532540651ba0c7b66a9b04c32e5ad7a79a1 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 12 Sep 2020 18:43:08 -0400
Subject: [PATCH] Fix farmyard.js

---
 src/facilities/farmyard/farmyard.js | 3 ++-
 src/uncategorized/saRules.tw        | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/facilities/farmyard/farmyard.js b/src/facilities/farmyard/farmyard.js
index 1f95d647cea..aa1d81ee866 100644
--- a/src/facilities/farmyard/farmyard.js
+++ b/src/facilities/farmyard/farmyard.js
@@ -7,6 +7,8 @@ App.Facilities.Farmyard.farmyard = function() {
 	V.returnTo = "Farmyard";
 	V.encyclopedia = "Farmyard";
 
+	const farmyardNameCaps = capFirstChar(V.farmyardName);
+
 	App.UI.DOM.appendNewElement("div", frag, intro(), "farmyard-intro");
 	App.UI.DOM.appendNewElement("div", frag, expand(), "farmyard-expand");
 	App.UI.DOM.appendNewElement("div", frag, menials(), "farmyard-menials");
@@ -27,7 +29,6 @@ App.Facilities.Farmyard.farmyard = function() {
 
 			count = App.Entity.facilities.farmyard.totalEmployeesCount;
 
-		const farmyardNameCaps = capFirstChar(V.farmyardName);
 		desc.append(`${farmyardNameCaps} is an oasis of growth in the midst of the jungle of steel and concrete that is ${V.arcologies[0].name}. Animals are kept in pens, tended to by your slaves, while ${V.farmyardUpgrades.hydroponics ? `rows of hydroponics equipment` : `makeshift fields`} grow crops. `);
 
 		switch (V.farmyardDecoration) {
diff --git a/src/uncategorized/saRules.tw b/src/uncategorized/saRules.tw
index dea0522cb18..7cbff5f4409 100644
--- a/src/uncategorized/saRules.tw
+++ b/src/uncategorized/saRules.tw
@@ -5050,6 +5050,11 @@
 			$He is @@.hotpink;very happy@@ with $his private room in $farmyardName and @@.mediumaquamarine;trusts@@ you a bit more for placing $him in charge of it.
 			<<set $slaves[$i].devotion += 1, $slaves[$i].trust += 1>>
 
+			<<if $slaveUsedRest>>
+				$He is permitted to take short breaks throughout the week to help manage $his building exhaustion, though it does restrict impact $his effectiveness.
+				<<unset $slaveUsedRest>>
+			<</if>>
+
 			<<if ($universalRulesConsent == 0)>>
 				<<if (_release.slaves === 1)>>
 					<<if ($slaves[$i].energy > 95)>>
-- 
GitLab