From 023f991e645730e150bfd2782d16cbb4e440f78c Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 16 Dec 2020 22:51:03 +0100 Subject: [PATCH] Add weariness info message. --- plomrogue/tasks.py | 2 +- plomrogue/things.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2