From b174e668f4f28faf92346651a4550ddb6a1b3569 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 17 Oct 2021 17:33:29 -0700 Subject: [PATCH] Fix day being off-by-one on turn zero. Doesn't have any real effect since no mission can be generated for that turn, but shows up wrong in the top bar. --- game/game.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/game/game.py b/game/game.py index 6bb2d3b8..821d268e 100644 --- a/game/game.py +++ b/game/game.py @@ -99,9 +99,7 @@ class Game: self.settings = settings self.events: List[Event] = [] self.theater = theater - # pass_turn() will be called when initialization is complete which will - # increment this to turn 0 before it reaches the player. - self.turn = -1 + self.turn = 0 # NB: This is the *start* date. It is never updated. self.date = date(start_date.year, start_date.month, start_date.day) self.game_stats = GameStats() @@ -303,7 +301,6 @@ class Game: def begin_turn_0(self) -> None: """Initialization for the first turn of the game.""" - self.turn = 0 self.blue.preinit_turn_0() self.red.preinit_turn_0() self.initialize_turn()