From 6a9d474bd99e586f956a7ef4be459a023c0202fa Mon Sep 17 00:00:00 2001
From: i107760 <13422-i107760@users.noreply.gitgud.io>
Date: Fri, 6 Mar 2020 18:11:44 +0100
Subject: [PATCH] Use <<else>> instead of <<elseif ...>> for cleaner code

---
 src/events/intro/initNationalities.tw | 2 +-
 src/uncategorized/nextWeek.tw         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/events/intro/initNationalities.tw b/src/events/intro/initNationalities.tw
index 80ba178334f..cd749bc20db 100644
--- a/src/events/intro/initNationalities.tw
+++ b/src/events/intro/initNationalities.tw
@@ -83,7 +83,7 @@
 		<<set $farmyardFoodCost = Math.max(5 / (1 + (Math.trunc(1000-100000/$localEcon)/10)/100), 3.125)>>
 	<<elseif $localEcon == 100>>
 		<<set $farmyardFoodCost = 5 >>
-	<<elseif $localEcon < 100>>
+	<<else>>
 		<<set $farmyardFoodCost = Math.min(5 * (1 + 1.5 * Math.sqrt(Math.trunc(100000/$localEcon-1000)/10)/100), 6.5)>>
 	<</if>
 <</if>
diff --git a/src/uncategorized/nextWeek.tw b/src/uncategorized/nextWeek.tw
index c49a58226b9..a06ea91a867 100644
--- a/src/uncategorized/nextWeek.tw
+++ b/src/uncategorized/nextWeek.tw
@@ -88,7 +88,7 @@
 		<<set $farmyardFoodCost = Math.max(5 / (1 + (Math.trunc(1000-100000/$localEcon)/10)/100), 3.125)>>
 	<<elseif $localEcon == 100>>
 		<<set $farmyardFoodCost = 5 >>
-	<<elseif $localEcon < 100>>
+	<<else>>
 		<<set $farmyardFoodCost = Math.min(5 * (1 + 1.5 * Math.sqrt(Math.trunc(100000/$localEcon-1000)/10)/100), 6.5)>>
 	<</if>
 	<<set $foodCost = Math.trunc(2500/$localEcon)>>
-- 
GitLab