home · contact · privacy
Fix remixer drop bug.
[plomrogue2] / plomrogue / tasks.py
index 8337132f58f77450df3d27e5a20f155d9692b407..9d3c23e7b69359da3dd9cdcd23a6cf853eb4ebbc 100644 (file)
@@ -230,7 +230,15 @@ class Task_WEAR(Task):
             self.thing.game.things += [t]
             t.design = self.thing.game.hats[self.thing.name]
             del self.thing.game.hats[self.thing.name]
+            self.thing.send_msg('CHAT "You drop your hat."')
+            for remixer in [t for t in self.thing.game.things
+                            if t.type_ == 'HatRemixer'
+                            and t.position == self.thing.position]:
+                remixer.accept(t)
+                break
         else:
+            from plomrogue.misc import quote
             self.thing.game.hats[self.thing.name] = self.thing.carrying.design
             self.thing.game.things.remove(self.thing.carrying)
             self.thing.carrying = None
+            self.thing.send_msg('CHAT "You put on a hat."')