home · contact · privacy
Start with energy 50, don't force dancing up to that value.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 17 Dec 2020 00:32:17 +0000 (01:32 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 17 Dec 2020 00:32:17 +0000 (01:32 +0100)
plomrogue/tasks.py
plomrogue/things.py

index 4a0e147ee358f7a1623a4adb3844110887bbe4e6..10e4055e4c3799745757c6f3a8bf9d001eb0d49c 100644 (file)
@@ -275,7 +275,7 @@ class Task_INTOXICATE(Task):
             self.thing.game.remove_thing(eaten)
         elif self.thing.carrying.type_ == 'Stimulant':
             self.thing.send_msg('CHAT "You feel a flash of energy."')
-            self.thing.energy += 100
+            self.thing.energy += 50
             eaten = self.thing.uncarry()
             self.thing.game.remove_thing(eaten)
 
index 6dbe8ef7eee4ccd2d4bb17354895edc0cc584044..1d9a4d021cc50425ae680584db3a570557fb1aa4 100644 (file)
@@ -497,7 +497,7 @@ class Thing_CrateSpawner(ThingSpawner):
 
 
 class ThingAnimate(Thing):
-    energy = 0
+    energy = 50
 
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
@@ -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