Skip to content
Snippets Groups Projects
Commit 6a9d474b authored by i107760's avatar i107760
Browse files

Use <<else>> instead of <<elseif ...>> for cleaner code

parent 0b0e4caa
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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)>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment