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:
54d8db9
)
Update FOVs on dropping Things in a way that removes them.
author
Christian Heller
<c.heller@plomlompom.de>
Tue, 8 Dec 2020 20:19:31 +0000
(21:19 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Tue, 8 Dec 2020 20:19:31 +0000
(21:19 +0100)
plomrogue/tasks.py
patch
|
blob
|
history
diff --git
a/plomrogue/tasks.py
b/plomrogue/tasks.py
index edfc3d10efddbd1fc4a9d95031b3fd8ea4101aca..446e0b186894dc3f306e293a0b8d313d44902f68 100644
(file)
--- a/
plomrogue/tasks.py
+++ b/
plomrogue/tasks.py
@@
-103,7
+103,6
@@
class Task_PICK_UP(Task):
to_pick_up = self.thing.game.get_thing(self.args[0])
to_pick_up.position = self.thing.position[:]
self.thing.carrying = to_pick_up
to_pick_up = self.thing.game.get_thing(self.args[0])
to_pick_up.position = self.thing.position[:]
self.thing.carrying = to_pick_up
- #self.thing.game.changed_fovs = True
@@
-125,15
+124,16
@@
class Task_DROP(Task):
and t.position == self.thing.position]:
t.accept()
self.thing.game.things.remove(self.thing.carrying)
and t.position == self.thing.position]:
t.accept()
self.thing.game.things.remove(self.thing.carrying)
+ self.thing.game.changed_fovs = True
break
elif self.thing.carrying.type_ == 'Hat':
for t in [t for t in self.thing.game.things
if t.type_ == 'HatRemixer'
and t.position == self.thing.position]:
t.accept(self.thing.carrying)
break
elif self.thing.carrying.type_ == 'Hat':
for t in [t for t in self.thing.game.things
if t.type_ == 'HatRemixer'
and t.position == self.thing.position]:
t.accept(self.thing.carrying)
+ self.thing.game.changed_fovs = True
break
self.thing.carrying = None
break
self.thing.carrying = None
- #self.thing.game.changed_fovs = True