self._game_over_text = []
if gamestate.seeds == 0 and len(self._turnips) == 0:
self._draw_you_lose(gamestate)
- elif gamestate.harvested >= gamestate.get_target():
+ elif gamestate.harvested >= gamestate.turnip_target:
self._draw_you_win(gamestate)
def _draw_you_lose(self, gamestate):
def _update_infobar(self, gamestate):
line1 = ("Day %d: Goal: %d Turnips. Turnips harvested: %d" % (
- gamestate.days, gamestate.get_target(), gamestate.harvested))
+ gamestate.days, gamestate.turnip_target, gamestate.harvested))
line1_img = self._infobar_font.render(line1, True, (255, 255, 255))
line2 = ("Turnip Stocks: Seeds: %s. Planted: %d. Battery: %d/%d" % (
gamestate.seeds, len(self._turnips), self._battery.current,