Skip to content
Snippets Groups Projects
Commit 99d7eed5 authored by gitgud.user.937's avatar gitgud.user.937
Browse files

Fix for bug preventing player from upgrading transportation infrastructure....

Fix for bug preventing player from upgrading transportation infrastructure. Occurs when player remodels weather cladding before weatherAwareness === 1.
parent 7deb27a0
No related branches found
No related tags found
No related merge requests found
......@@ -612,6 +612,7 @@ $menialBioreactors -= _expirationBR>>
<<if $secExp == 1>>
<<if $docks < 4 && $railway < 4>>
<<set _weatherFreeze = 1>>
<<set $weatherAwareness = 1>>
<br>//The terrible weather is @@.red;preventing people from entering or leaving@@ your arcology. Improving your transport infrastructure will prevent this from happening.//
<<else>>
<<set _weatherFreeze = 0>>
......@@ -632,6 +633,7 @@ $menialBioreactors -= _expirationBR>>
<</if>>
<<elseif $antiWeatherFreeze < 1>>
<<set _weatherFreeze = 1>>
<<set $weatherAwareness = 1>>
<br>//The terrible weather is @@.red;preventing people from entering or leaving@@ your arcology. Improving your transport infrastructure will prevent this from happening.//
<<else>>
<<set _weatherFreeze = 0>>
......
......@@ -789,8 +789,8 @@ Routine upkeep of your demesne costs @@.yellow;<<print cashFormat($costs)>>.@@
<<set $rep = Math.trunc($rep*0.8)>>
<<set $cash -= Math.trunc(_weatherRepairCost/4), $PC.engineering += .1>>
<</if>>
<<elseif $weatherToday.severity-$weatherCladding == 2>>
<<if $weatherCladding >= 1>>
<<elseif $weatherToday.severity-$weatherCladding <= 2>>
<<if $weatherToday.severity > 2>>
<<set $weatherAwareness = 1>>
The arcology's hardened exterior resisted severe weather this week. Your citizens are @@.green;grateful@@ to you for maintaining the arcology as a safe haven from the terrible climate.
<<set $rep += 100>>
......
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