From bfc338bd54ff02673ec28436453561acf372e39e Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 20:58:01 +0200 Subject: [PATCH] End the night if no power and no planted turnips left --- tabakrolletjie/scenes/night.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py index 0c76889..674d074 100644 --- a/tabakrolletjie/scenes/night.py +++ b/tabakrolletjie/scenes/night.py @@ -176,7 +176,8 @@ class NightScene(BaseScene): self._end_night() if not self.turnip_count: self.add_day_button() - + if not self.turnip_count and not self._battery.current: + self._end_night() def exit(self, gamestate): turnip_data = [turnip.serialize() for turnip in self._turnips] -- 2.34.1