X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=ff1cc7ea613d721eec2ffa7c7368b48fa62117fc;hb=baab532ba5125527bdc7061864f7cc7db8d7abc3;hp=6d1a32a75e65b4a5a7fe74a40634f260e85e4d1c;hpb=7abc6dcdbe60dce9b8efad07917fb274da06687a;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 6d1a32a..ff1cc7e 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -40,7 +40,7 @@ class Task_MOVE(Task): 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() @@ -85,7 +85,7 @@ class Task_PICK_UP(Task): 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