X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=tabakrolletjie%2Fgamestate.py;h=091b7093d419ac3024c4c52c35c6e984444fe47f;hb=2c844664ed953dd3e6941f741ea7057a8f34e218;hp=03b5f23a1d424fe937124b0b1f8390ab86cfc58c;hpb=5b5836320f5c8c4894dff0bd76df1acaf11bd700;p=tabakrolletjie.git diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py index 03b5f23..091b709 100644 --- a/tabakrolletjie/gamestate.py +++ b/tabakrolletjie/gamestate.py @@ -10,6 +10,7 @@ class GameState(object): "turnips": [], } self.harvested = 0 + self.eaten = 0 @property def station(self): @@ -27,7 +28,8 @@ class GameState(object): def seeds(self): if 'seeds' in self._state: return self._state['seeds'] - elif self._state["station"] and 'seeds' in self._state["station"]["config"]: + elif (self._state["station"] and + 'seeds' in self._state["station"]["config"]): self._state['seeds'] = self._state["station"]["config"]["seeds"] return self._state['seeds'] return 0