X-Git-Url: https://plomlompom.com/repos/new_day?a=blobdiff_plain;f=plomrogue%2Fthings.py;h=da995d311dd84b7a777f9c0cc28aae2f091be0d5;hb=249d0afc8663af2a1dbdd9d2f893582fe235cf6c;hp=6dbe8ef7eee4ccd2d4bb17354895edc0cc584044;hpb=cf2a7a164c24e82a5efc4cfe9c56c4b4f2c442df;p=plomrogue2 diff --git a/plomrogue/things.py b/plomrogue/things.py index 6dbe8ef..da995d3 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -497,7 +497,7 @@ class Thing_CrateSpawner(ThingSpawner): class ThingAnimate(Thing): - energy = 0 + energy = 50 def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -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."') @@ -693,7 +693,7 @@ class Thing_Player(ThingAnimate): if random.random() > 0.9: self.energy -= 1 self.game.changed = True - if 1000000 * random.random() < self.energy: + if 1000000 * random.random() < self.energy - 50: self.send_msg('CHAT "Your body tries to ' 'dance off its energy surplus."') self.dancing += 50