raise PlayError('already carrying something')
nothing_to_pick_up = True
for t in [t for t in self.thing.game.things
- if t != self.thing and t.position == self.thing.position and
+ if t.portable
+ and t != self.thing and t.position == self.thing.position and
t.type_ != 'Player']:
nothing_to_pick_up = False
break
def do(self):
to_pick_up = [t for t in self.thing.game.things
- if t != self.thing and t.position == self.thing.position][0]
+ if t.portable
+ and t != self.thing and t.position == self.thing.position][0]
self.thing.carrying = to_pick_up