X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=3dc09282449ac03088d88800c488004f8dfafaee;hb=dc2747c7daca975526206bfadecc1dd0ddcc8d67;hp=841a0e663d0f343542dd7e0dd96476f37a5151e3;hpb=871008b21686f5e4b462568ff4520ea299dd496f;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 841a0e6..3dc0928 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -198,6 +198,7 @@ class Task_COMMAND(Task): class Task_INSTALL(Task): + argtypes = 'string' def _get_uninstallables(self): return [t for t in self.thing.game.things @@ -207,6 +208,9 @@ class Task_INSTALL(Task): and t.position == self.thing.position] def check(self): + if not self.thing.game.can_do_tile_with_pw(*self.thing.position, + self.args[0]): + raise GameError('wrong password for tile') if self.thing.carrying: if not hasattr(self.thing.carrying, 'installable')\ or not self.thing.carrying.installable: