From: Christian Heller Date: Wed, 16 Dec 2020 21:51:03 +0000 (+0100) Subject: Add weariness info message. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/tasks?a=commitdiff_plain;h=023f991e645730e150bfd2782d16cbb4e440f78c;p=plomrogue2 Add weariness info message. --- diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 9b53bbe..14ea820 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -67,7 +67,7 @@ class Task_MOVE(Task): terrain_type = self.thing.game.terrains[terrain] if 'sittable' in terrain_type.tags: self.thing.standing = False - self.thing.send_msg('CHAT "You sink into the %s.' + self.thing.send_msg('CHAT "You sink into the %s. ' 'Staying here will reduce your weariness."' % terrain_type.description) self.thing.invalidate('fov') diff --git a/plomrogue/things.py b/plomrogue/things.py index 6f8b79d..a0db94a 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -638,6 +638,10 @@ class Thing_Player(ThingAnimate): if random.random() > 0.9999: if self.standing: self.weariness += 1 + if self.weariness % 5 == 0: + self.send_msg('CHAT "All that walking or standing makes ' + 'you weary, and thereby slower. Find a place ' + 'to sit or lie down to regain energy."') elif self.weariness > 0: self.weariness -= 1 self.game.changed = True