to_pick_up.position = self.thing.position[:]
self.thing.carrying = to_pick_up
to_pick_up.carried = True
+ # FIXME: pseudo-FOV-change actually
+ self.thing.game.record_fov_change(self.thing.position)
and t.position == dropped.position]:
t.accept(dropped)
break
+ # FIXME: pseudo-FOV-change actually
+ self.thing.game.record_fov_change(self.thing.position)
self.thing.send_msg('RANDOM_COLORS')
self.thing.send_msg('CHAT "You are drunk now."')
self.thing.drunk = 10000
- self.thing.invalidate_map_view()
+ # FIXME: pseudo-FOV-change actually
+ self.thing.game.record_fov_change(self.thing.position)
class Task_INSTALL(Task):
+ argtypes = 'string'
def _get_uninstallables(self):
return [t for t in self.thing.game.things
and t.position == self.thing.position]
def check(self):
+ if not self.thing.game.can_do_tile_with_pw(*self.thing.position,
+ self.args[0]):
+ raise GameError('wrong password for tile')
if self.thing.carrying:
if not hasattr(self.thing.carrying, 'installable')\
or not self.thing.carrying.installable:
else:
self._get_uninstallables()[0].uninstall()
self.thing.send_msg('CHAT "You uninstall the thing here."')
+ # FIXME: pseudo-FOV-change actually
+ self.thing.game.record_fov_change(self.thing.position)
self.thing.send_msg('CHAT "You put on a hat."')
self.thing.game.remove_thing(self.thing.carrying)
self.thing.carrying = None
+ # FIXME: pseudo-FOV-change actually
+ self.thing.game.record_fov_change(self.thing.position)
def do(self):
self.thing.carrying.spin()
+ self.thing.send_msg('CHAT "You spin this object."')