From 04230c463dc78b92adfe0f1a432117e349aa771e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 7 Dec 2020 07:05:47 +0100 Subject: [PATCH] Fix remixer drop bug. --- plomrogue/tasks.py | 9 +++++---- plomrogue/things.py | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) 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 -- 2.30.2