self._mould.tick(gamestate, self._space, self._lights)
self._lights.tick()
print "Power usage: ", self._lights.total_power_usage()
+ self._total_ticks += 1
else:
self._end_night()
if not self._mould.alive():
def exit(self, gamestate):
turnip_data = [turnip.serialize() for turnip in self._turnips]
gamestate.turnips = turnip_data
+ # TODO: Move this into the end_night function
gamestate.days += 1
+ self._mould.update_resistances(gamestate)