From: Christian Heller Date: Mon, 7 Dec 2020 06:05:47 +0000 (+0100) Subject: Fix remixer drop bug. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/bar%20baz.html?a=commitdiff_plain;h=04230c463dc78b92adfe0f1a432117e349aa771e;p=plomrogue2 Fix remixer drop bug. --- 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 diff --git a/plomrogue/things.py b/plomrogue/things.py index 53837e3..116ad69 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -182,6 +182,7 @@ class Thing_HatRemixer(Thing): new_design += random.choice(list(legal_chars)) hat.design = new_design self.sound('HAT REMIXER', 'remixing a hat …') + self.game.changed = True