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()
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')