X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=new%2Fplomrogue%2Fcommands.py;h=bcab2d10702c13bda99a2fee684e210b5e7fa979;hb=97049163acc0844e1656df3f761c9ca612afdeb0;hp=2d9ecb6e1a2088aef39cb4449f00bc6c9446cfad;hpb=bc8966e5d8af45c551f7b2b42503b08609887475;p=plomrogue2-experiments diff --git a/new/plomrogue/commands.py b/new/plomrogue/commands.py index 2d9ecb6..bcab2d1 100644 --- a/new/plomrogue/commands.py +++ b/new/plomrogue/commands.py @@ -15,12 +15,12 @@ def cmd_SEED(game, seed): cmd_SEED.argtypes = 'int:nonneg' def cmd_MAP_SIZE(game, size): - game.world.map_size = size + game.map_size = size cmd_MAP_SIZE.argtypes = 'yx_tuple:pos' def cmd_MAP(game, map_pos): """Ensure (possibly empty/'?'-filled) map at position map_pos.""" - game.world.ensure_map(map_pos) + game.world.get_map(map_pos) cmd_MAP.argtypes = 'yx_tuple' def cmd_THING_TYPE(game, i, type_): @@ -104,7 +104,7 @@ def cmd_SAVE(game): with open(save_file_name, 'w') as f: write(f, 'TURN %s' % game.world.turn) write(f, 'SEED %s' % game.world.rand.prngod_seed) - write(f, 'MAP_SIZE %s' % (game.world.map_size,)) + write(f, 'MAP_SIZE %s' % (game.map_size,)) for map_pos in game.world.maps: write(f, 'MAP %s' % (map_pos,)) for map_pos in game.world.maps: