diff --git a/game/game.py b/game/game.py index 43598f40..ccb4c0b6 100644 --- a/game/game.py +++ b/game/game.py @@ -187,7 +187,7 @@ class Game: def generate_conditions(self, forced_time: time | None = None) -> Conditions: return Conditions.generate( self.theater, - self.current_day, + self.conditions.start_time.date(), self.current_turn_time_of_day, self.settings, forced_time=forced_time, diff --git a/game/weather/conditions.py b/game/weather/conditions.py index dfcb32ff..b4ae5cf9 100644 --- a/game/weather/conditions.py +++ b/game/weather/conditions.py @@ -91,6 +91,8 @@ class Conditions: day += datetime.timedelta(days=1.0) hours %= 24 else: + if start == 0: + day += datetime.timedelta(days=1.0) hours = random.randint(start, end) return day, hours