home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d2cf31
)
Also activate HatRemixer when dropping hat by unwearing it.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 7 Dec 2020 05:39:12 +0000
(06:39 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 7 Dec 2020 05:39:12 +0000
(06:39 +0100)
plomrogue/tasks.py
patch
|
blob
|
history
diff --git
a/plomrogue/tasks.py
b/plomrogue/tasks.py
index 8337132f58f77450df3d27e5a20f155d9692b407..2312ab4f6e0b268fa32254c9b5815e713623887c 100644
(file)
--- a/
plomrogue/tasks.py
+++ b/
plomrogue/tasks.py
@@
-230,7
+230,14
@@
class Task_WEAR(Task):
self.thing.game.things += [t]
t.design = self.thing.game.hats[self.thing.name]
del self.thing.game.hats[self.thing.name]
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
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."')