X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=plomrogue%2Fcommands.py;h=49312eeff129006a7755bee3ed4645088eaacf5e;hb=faf760cf585b035e207e5bc80ec4fce720685c23;hp=50445e7f9c62f557b098d7e4781723679c11c74d;hpb=9f83e41901f23e282737e7344c84e8a692d05ef0;p=plomrogue2 diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 50445e7..49312ee 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -28,6 +28,12 @@ def cmd_TERRAIN(game, character, description, blocks_sound, blocks_movement) cmd_TERRAIN.argtypes = 'char string bool bool bool' +def cmd_TERRAIN_TAG(game, character, tag): + if not character in game.terrains: + raise GameError('terrain does not exist: %s' % character) + game.terrains[character].tags.add(tag) +cmd_TERRAIN_TAG.argtypes = 'char string' + def cmd_ALL(game, msg, connection_id): speaker = game.get_player(connection_id) if not speaker: