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_):
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: