self._to_day()
if ev.button == 1:
self._lights.toggle_nearest(ev.pos, surfpos=True)
- print self._lights.lit_by(ev.pos, surfpos=True)
# Check tools
for tool in self._tools:
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()
+ if self._total_ticks % 60 == 0:
+ self._battery.current -= int(
+ self._lights.total_power_usage())
self._total_ticks += 1
else:
self._end_night()