home · contact · privacy
Start pee-o-meter right on drinking, grow value exponentially over time.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 15 Dec 2020 03:18:25 +0000 (04:18 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 15 Dec 2020 03:18:25 +0000 (04:18 +0100)
plomrogue/tasks.py
plomrogue/things.py

index d42aa4deb232de0a17dcaebaa838dc20e10a01c9..09e9c56702083cefbff105268a5c7a241f20d8fb 100644 (file)
@@ -195,6 +195,8 @@ class Task_INTOXICATE(Task):
             self.thing.carrying.full = False
             self.thing.carrying.empty()
             self.thing.send_msg('CHAT "You are drunk now."')
             self.thing.carrying.full = False
             self.thing.carrying.empty()
             self.thing.send_msg('CHAT "You are drunk now."')
+            self.thing.need_for_toilet *= 2
+            self.thing.need_for_toilet += 1
             self.thing.drunk = 10000
             self.thing.invalidate('fov')
             self.thing.game.record_change(self.thing.position, 'other')
             self.thing.drunk = 10000
             self.thing.invalidate('fov')
             self.thing.game.record_change(self.thing.position, 'other')
index 09dc4b678a066ba83f475250a8f205ac7ab4ec90..666a14d6f2301dc9e901d67ceeef4874f87eeb17 100644 (file)
@@ -576,7 +576,7 @@ class Thing_Player(ThingAnimate):
         if self.tripping >= 0:
             self.tripping -= 1
         if self.need_for_toilet > 0:
         if self.tripping >= 0:
             self.tripping -= 1
         if self.need_for_toilet > 0:
-            self.need_for_toilet += 1
+            self.need_for_toilet *= 1.01
             terrain = self.game.maps[self.position[0]][self.position[1]]
             if terrain in self.game.terrains:
                 terrain_type = self.game.terrains[terrain]
             terrain = self.game.maps[self.position[0]][self.position[1]]
             if terrain in self.game.terrains:
                 terrain_type = self.game.terrains[terrain]
@@ -589,8 +589,6 @@ class Thing_Player(ThingAnimate):
             self.send_msg('CHAT "You sober up."')
             self.invalidate('fov')
             self.game.changed = True
             self.send_msg('CHAT "You sober up."')
             self.invalidate('fov')
             self.game.changed = True
-            self.need_for_toilet *= 2
-            self.need_for_toilet += 1
         if self.tripping == 0:
             self.send_msg('DEFAULT_COLORS')
             self.send_msg('CHAT "You sober up."')
         if self.tripping == 0:
             self.send_msg('DEFAULT_COLORS')
             self.send_msg('CHAT "You sober up."')