X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=plomrogue%2Fgame.py;h=8b3edb16127cf184886cca687412832326a2f15b;hb=750eb29e8a84e9846bb6b568745b8de453788f58;hp=23a0d7bbc21cd7763e9c58e7f2e7c49da584c3a9;hpb=75157d7506ff0bee2e1e0020681cdc9c7a19b801;p=plomrogue2 diff --git a/plomrogue/game.py b/plomrogue/game.py index 23a0d7b..8b3edb1 100755 --- a/plomrogue/game.py +++ b/plomrogue/game.py @@ -64,6 +64,7 @@ class Game(GameBase): self.portals = {} self.player_chars = string.digits + string.ascii_letters self.player_char_i = -1 + self.admin_passwords = [] self.terrains = { '.': 'floor', 'X': 'wall', @@ -265,6 +266,8 @@ class Game(GameBase): for tile_class in self.map_control_passwords: write(f, 'MAP_CONTROL_PW %s %s' % (tile_class, self.map_control_passwords[tile_class])) + for pw in self.admin_passwords: + write(f, 'ADMIN_PASSWORD %s' % pw) for t in [t for t in self.things if not t.type_ == 'Player']: write(f, 'THING %s %s %s %s' % (t.position[0], t.position[1], t.type_, t.id_))