End the night if no power and no planted turnips left
[tabakrolletjie.git] / tabakrolletjie / scenes / night.py
index 0c7688924e7ebd0d2e8e6fb245cab9fe1afabd8c..674d0742c4d1b5826b4e94232057ee3f2a224139 100644 (file)
@@ -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]