From 7a4619f87474df74e807187e73b73c2864b1bbeb Mon Sep 17 00:00:00 2001 From: Tony Bark <35226681+tonytins@users.noreply.github.com> Date: Thu, 27 May 2021 12:05:08 -0400 Subject: [PATCH] Fixed month not counting down in GUI Apparently the reason why the month wasn't counting on the GUI - despite everything I threw at it - was because I had the plus and equal symbols mixed up. Derp. --- scripts/game.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/game.gd b/scripts/game.gd index 4be0b05..e25cba5 100644 --- a/scripts/game.gd +++ b/scripts/game.gd @@ -18,12 +18,14 @@ func _resume_rotation(): func _on_DayCycle_timeout(): if SimData.prev_day < 30: + SimData.prev_day = SimData.day SimData.day += 1 if SimData.prev_day == 30: - SimData.month =+ 1 - SimData.prev_month = SimData.month + SimData.prev_day = SimData.day SimData.day = 1 + SimData.prev_month = SimData.month + SimData.month += 1 SimEvents.emit_signal("budget") if SimData.prev_month == 12: