home · contact · privacy
Spawn hats from BottleDeposit, add HatRemixer.
[plomrogue2] / plomrogue / tasks.py
index 9fccbc33450f2c50fe5caf6269d0ba171bc7e644..8337132f58f77450df3d27e5a20f155d9692b407 100644 (file)
@@ -122,6 +122,12 @@ class Task_DROP(Task):
                 t.accept()
                 self.thing.game.things.remove(self.thing.carrying)
                 break
+        elif self.thing.carrying.type_ == 'Hat':
+            for t in [t for t in self.thing.game.things
+                      if t.type_ == 'HatRemixer'
+                      and t.position == self.thing.position]:
+                t.accept(self.thing.carrying)
+                break
         self.thing.carrying = None