X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_structured?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=9d3c23e7b69359da3dd9cdcd23a6cf853eb4ebbc;hb=04230c463dc78b92adfe0f1a432117e349aa771e;hp=2312ab4f6e0b268fa32254c9b5815e713623887c;hpb=bf8653594beb9ee94b8e7c4139b2891425a6367b;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 2312ab4..9d3c23e 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -231,12 +231,13 @@ class Task_WEAR(Task): 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) + 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