From 3e0f898a8bc308e6b7d06573a90c197eff8d82f3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 15 Dec 2020 04:18:25 +0100 Subject: [PATCH] Start pee-o-meter right on drinking, grow value exponentially over time. --- plomrogue/tasks.py | 2 ++ plomrogue/things.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index d42aa4d..09e9c56 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -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.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') diff --git a/plomrogue/things.py b/plomrogue/things.py index 09dc4b6..666a14d 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -576,7 +576,7 @@ class Thing_Player(ThingAnimate): 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] @@ -589,8 +589,6 @@ class Thing_Player(ThingAnimate): 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."') -- 2.30.2