projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c416582
)
End the night if no power and no planted turnips left
author
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 18:58:01 +0000
(20:58 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Sat, 10 Sep 2016 18:58:01 +0000
(20:58 +0200)
tabakrolletjie/scenes/night.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/scenes/night.py
b/tabakrolletjie/scenes/night.py
index 0c7688924e7ebd0d2e8e6fb245cab9fe1afabd8c..674d0742c4d1b5826b4e94232057ee3f2a224139 100644
(file)
--- 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]