class ThingAnimate(Thing):
+ weariness = 0
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
task = self.next_task[0]
self.next_task = [None]
task.check()
+ task.todo += self.weariness * 10
return task
def proceed(self):
elif self.tripping > 0 and self.tripping % 250 == 0:
self.send_msg('RANDOM_COLORS')
self.game.changed = True
+ if random.random() > 0.9999:
+ if self.standing:
+ self.weariness += 1
+ elif self.weariness > 0:
+ self.weariness -= 1
def send_msg(self, msg):
for c_id in self.game.sessions: