X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=plomrogue%2Fgame.py;h=202a0fcba9bcf39e76e33e0b21e44d4b4c9723b4;hb=faf760cf585b035e207e5bc80ec4fce720685c23;hp=9a9b235cd454a13187a6058b88cdc7fe513238ec;hpb=9f83e41901f23e282737e7344c84e8a692d05ef0;p=plomrogue2 diff --git a/plomrogue/game.py b/plomrogue/game.py index 9a9b235..202a0fc 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -473,6 +473,10 @@ class Game(GameBase): int(terrain.blocks_light), int(terrain.blocks_sound), int(terrain.blocks_movement))) + if len(terrain.tags) > 0: + for tag in terrain.tags: + write(f, 'TERRAIN_TAG %s %s' % (quote(terrain.character), + quote(tag))) for big_yx in [yx for yx in self.maps if self.maps[yx].modified]: for y, line in self.maps[big_yx].lines(): write(f, 'MAP_LINE %s %5s %s' % (big_yx, y, quote(line)))