修改地图脚本, 即PublicMaps目录下那些py文件.
搜索
- def getGridSize(argsList):
复制代码
比如Terra.py对应类地
- def getGridSize(argsList):
- "Enlarge the grids! According to Soren, Earth-type maps are usually huge anyway."
- grid_sizes = {
- WorldSizeTypes.WORLDSIZE_DUEL: (13,8),
- WorldSizeTypes.WORLDSIZE_TINY: (16,10),
- WorldSizeTypes.WORLDSIZE_SMALL: (21,13),
- WorldSizeTypes.WORLDSIZE_STANDARD: (26,16),
- WorldSizeTypes.WORLDSIZE_LARGE: (32,20),
- WorldSizeTypes.WORLDSIZE_HUGE: (38,24)
- }
- if (argsList[0] == -1): # (-1,) is passed to function on loads
- return []
- [eWorldSize] = argsList
- return grid_sizes[eWorldSize]
复制代码
Pangaea.py对应盘古
- def getGridSize(argsList):
- # Reduce grid sizes by one level.
- grid_sizes = {
- WorldSizeTypes.WORLDSIZE_DUEL: (8,5),
- WorldSizeTypes.WORLDSIZE_TINY: (10,6),
- WorldSizeTypes.WORLDSIZE_SMALL: (13,8),
- WorldSizeTypes.WORLDSIZE_STANDARD: (16,10),
- WorldSizeTypes.WORLDSIZE_LARGE: (21,13),
- WorldSizeTypes.WORLDSIZE_HUGE: (26,16)
- }
- if (argsList[0] == -1): # (-1,) is passed to function on loads
- return []
- [eWorldSize] = argsList
- return grid_sizes[eWorldSize]
复制代码 |