X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=new%2Fplomrogue%2Ftasks.py;h=d97b92335e3e8c40dfefe79541340bdca8dd644a;hb=1d9e41e7df05336a6688382c9374c547979cf11e;hp=11d4ba33ca69b125366f4262f4a65bfc8816617f;hpb=b7587718cee2308bd2a27462e0996dc279bd3038;p=plomrogue2-experiments
diff --git a/new/plomrogue/tasks.py b/new/plomrogue/tasks.py
index 11d4ba3..d97b923 100644
--- a/new/plomrogue/tasks.py
+++ b/new/plomrogue/tasks.py
@@ -68,7 +68,8 @@ class Task_PICKUP(Task):
% self.args[0])
def do(self):
- to_pick_up = self.thing.game.get_thing(self.args[0])
+ to_pick_up = self.thing.game.get_thing(self.args[0],
+ create_unfound=False)
self.thing.inventory += [self.args[0]]
to_pick_up.in_inventory = True
to_pick_up.position = self.thing.position
@@ -87,7 +88,7 @@ class TaskOnInventoryItem(Task):
return item
def _eliminate_from_inventory(self):
- item = self.thing.game.get_thing(self.args[0])
+ item = self.thing.game.get_thing(self.args[0], create_unfound=False)
del self.thing.inventory[self.thing.inventory.index(item.id_)]
item.in_inventory = False
return item