X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=new%2Fplomrogue%2Ftasks.py;fp=new%2Fplomrogue%2Ftasks.py;h=d97b92335e3e8c40dfefe79541340bdca8dd644a;hb=ecf3799b03f0a9098956d529f26be54f37c6534b;hp=11d4ba33ca69b125366f4262f4a65bfc8816617f;hpb=7cf9821ef5b430ac64d5c663ca67b2f1a887d8a4;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