from plomrogue.errors import PlayError, GameError
+from plomrogue.misc import quote
raise PlayError('cannot command this item type')
def do(self):
- from plomrogue.misc import quote
reply_lines = self.thing.carrying.interpret(self.args[0])
for line in reply_lines:
self.thing.send_msg('REPLY ' + quote(line))
remixer.accept(t)
break
else:
- from plomrogue.misc import quote
self.thing.game.hats[self.thing.name] = self.thing.carrying.design
self.thing.game.remove_thing(self.thing.carrying)
self.thing.carrying = None
self.thing.send_msg('CHAT "You put on a hat."')
+
+
+
+class Task_SPIN(Task):
+
+ def check(self):
+ if not self.thing.carrying:
+ raise PlayError('holding nothing to spin')
+ if not hasattr(self.thing.carrying, 'spinnable'):
+ raise PlayError('held object not spinnable')
+
+ def do(self):
+ self.thing.carrying.spin()