X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;ds=sidebyside;f=plomrogue%2Ftasks.py;h=14ea820bd153e20f016af575d59d74c110023826;hb=023f991e645730e150bfd2782d16cbb4e440f78c;hp=94f79a3350e1335eede208608b15a8a3e7577190;hpb=738d909ab62b9248adb1cf5244b37daa412b39c7;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 94f79a3..14ea820 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -67,7 +67,7 @@ class Task_MOVE(Task): terrain_type = self.thing.game.terrains[terrain] if 'sittable' in terrain_type.tags: self.thing.standing = False - self.thing.send_msg('CHAT "You sink into the %s.' + self.thing.send_msg('CHAT "You sink into the %s. ' 'Staying here will reduce your weariness."' % terrain_type.description) self.thing.invalidate('fov') @@ -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()