X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/git-favicon.png?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=9b53bbe86f98fdc0efe08cede71c0870fb3e3d17;hb=ce80e43db5939580763b1f66bff4f87f1cccc383;hp=5449c0c2eda8dd27e980a2c4b6f28da68e8e1952;hpb=aa64ccc21845f2bf168e27402b8d157212bf3435;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 5449c0c..9b53bbe 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -155,6 +155,12 @@ class Task_DROP(Task): if t.type_ == 'BottleDeposit' and t.position == target_position]: raise PlayError('cannot drop full bottle into bottle deposit') + for t in [t for t in self.thing.game.things + if t.type_ == 'CookieSpawner' + and t.position == target_position]: + if not self.thing.carrying.cookable: + raise PlayError('cannot cook items of this type') + break def do(self): target_position = self._get_move_target() @@ -240,7 +246,7 @@ 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 += 10000 + self.thing.need_for_toilet += 1 self.thing.drunk = 10000 self.thing.invalidate('fov') self.thing.game.record_change(self.thing.position, 'other')