if t.blocking]:
raise PlayError('blocked by other thing')
elif self.thing.game.map[test_pos] != '.':
- raise PlayError('would move into illegal territory')
+ raise PlayError('blocked by impassable tile')
def do(self):
self.thing.position = self.get_move_target()
def check(self):
if self.thing.carrying:
- raise PlayError('already carrying')
+ 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