From 99d7eed50b8c336dd26efb78546662faa020af15 Mon Sep 17 00:00:00 2001 From: "gitgud.user.937" <gitgud.user.937@gmail.com> Date: Fri, 4 Jan 2019 15:38:48 -0800 Subject: [PATCH] Fix for bug preventing player from upgrading transportation infrastructure. Occurs when player remodels weather cladding before weatherAwareness === 1. --- src/uncategorized/arcmgmt.tw | 2 ++ src/uncategorized/persBusiness.tw | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/uncategorized/arcmgmt.tw b/src/uncategorized/arcmgmt.tw index b39f08b2b4f..6a80975eed3 100644 --- a/src/uncategorized/arcmgmt.tw +++ b/src/uncategorized/arcmgmt.tw @@ -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>> diff --git a/src/uncategorized/persBusiness.tw b/src/uncategorized/persBusiness.tw index 55ff98ccf10..ca84a4d0375 100644 --- a/src/uncategorized/persBusiness.tw +++ b/src/uncategorized/persBusiness.tw @@ -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>> -- GitLab