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 t in [t for t in self.thing.game.things
+ if t.type_ == 'HatRemixer'
+ and t.position == self.thing.position]:
+ t.accept(t)
+ break
else:
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."')