From 19f3af2bd8c0a4060e5dbec2a2ab86c4b050a3cf Mon Sep 17 00:00:00 2001
From: i107760 <13422-i107760@users.noreply.gitgud.io>
Date: Fri, 6 Mar 2020 18:16:54 +0100
Subject: [PATCH] Gate behind check for `nextWeek.tw`

---
 src/uncategorized/nextWeek.tw | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/uncategorized/nextWeek.tw b/src/uncategorized/nextWeek.tw
index a06ea91a867..231d1ba7985 100644
--- a/src/uncategorized/nextWeek.tw
+++ b/src/uncategorized/nextWeek.tw
@@ -84,12 +84,14 @@
 		<<set $localEcon = 20>>
 	<</if>>
 
-	<<if $localEcon > 100>>
-		<<set $farmyardFoodCost = Math.max(5 / (1 + (Math.trunc(1000-100000/$localEcon)/10)/100), 3.125)>>
-	<<elseif $localEcon == 100>>
-		<<set $farmyardFoodCost = 5 >>
-	<<else>>
-		<<set $farmyardFoodCost = Math.min(5 * (1 + 1.5 * Math.sqrt(Math.trunc(100000/$localEcon-1000)/10)/100), 6.5)>>
+	<<if $experimental.food == 1>>
+		<<if $localEcon > 100>>
+			<<set $farmyardFoodCost = Math.max(5 / (1 + (Math.trunc(1000-100000/$localEcon)/10)/100), 3.125)>>
+		<<elseif $localEcon == 100>>
+			<<set $farmyardFoodCost = 5 >>
+		<<else>>
+			<<set $farmyardFoodCost = Math.min(5 * (1 + 1.5 * Math.sqrt(Math.trunc(100000/$localEcon-1000)/10)/100), 6.5)>>
+		<</if>
 	<</if>
 	<<set $foodCost = Math.trunc(2500/$localEcon)>>
 	<<set $drugsCost = Math.trunc(10000/$localEcon)>>
-- 
GitLab