From: Christian Heller Date: Tue, 15 Dec 2020 03:18:25 +0000 (+0100) Subject: Start pee-o-meter right on drinking, grow value exponentially over time. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%22https:/validator.w3.org/process?a=commitdiff_plain;h=3e0f898a8bc308e6b7d06573a90c197eff8d82f3;p=plomrogue2 Start pee-o-meter right on drinking, grow value exponentially over time. --- 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."')