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:
cbfca99
)
On dropping crate next to player, also drop its content /there/.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 16 Dec 2020 22:51:38 +0000
(23:51 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 16 Dec 2020 22:51:38 +0000
(23:51 +0100)
plomrogue/tasks.py
patch
|
blob
|
history
diff --git
a/plomrogue/tasks.py
b/plomrogue/tasks.py
index 95945055e0f7e15923bc34780a985c2b3a5ea556..eb9d31ac3bdd72852eeb664f70d7fd3b49fd1c27 100644
(file)
--- a/
plomrogue/tasks.py
+++ b/
plomrogue/tasks.py
@@
-179,6
+179,9
@@
class Task_DROP(Task):
target_position = self._get_move_target()
dropped = self.thing.uncarry()
dropped.position = target_position
+ if dropped.type_ == 'Crate':
+ for item in dropped.content:
+ item.position = target_position
targets = [t for t in self.thing.game.things
if t.position == dropped.position and not t == dropped]
for target in targets: