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