home · contact · privacy
Only recommend sitting down if actually standing.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 17 Dec 2020 01:09:55 +0000 (02:09 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 17 Dec 2020 01:09:55 +0000 (02:09 +0100)
plomrogue/things.py

index 1d9a4d021cc50425ae680584db3a570557fb1aa4..da995d311dd84b7a777f9c0cc28aae2f091be0d5 100644 (file)
@@ -681,7 +681,7 @@ class Thing_Player(ThingAnimate):
                 self.energy -= 1
             else:
                 self.energy += 1
-            if self.energy < 0 and self.energy % 5 == 0:
+            if self.energy < 0 and self.standing and self.energy % 5 == 0:
                     self.send_msg('CHAT "All that walking or standing uses up '
                                   'your energy, which makes you slower.  Find a'
                                   ' place to sit or lie down to regain it."')