- self._mould.tick(gamestate, self._space, self._lights)
- self._lights.tick()
- print "Power usage: ", self._lights.total_power_usage()
+ if self._total_ticks < NIGHT_LENGTH:
+ self._mould.tick(gamestate, self._space, self._lights)
+ self._lights.tick()
+ print "Power usage: ", self._lights.total_power_usage()
+ else:
+ self._to_day()
+ if not self._mould.alive():
+ self._to_day()