Replace battle maps 63 and 64 with hand-painted assets
This commit is contained in:
@@ -24,6 +24,7 @@ MASSIVE_LARGE_MAP_TILE_SIZE = 144
|
||||
COLOSSAL_LARGE_MAP_TILE_SIZE = 136
|
||||
GIGANTIC_LARGE_MAP_TILE_SIZE = 128
|
||||
IMMENSE_LARGE_MAP_TILE_SIZE = 120
|
||||
VAST_LARGE_MAP_TILE_SIZE = 112
|
||||
TILE = DEFAULT_TILE_SIZE
|
||||
RNG = random.Random(240704)
|
||||
|
||||
@@ -623,6 +624,26 @@ MAP_CONFIGS = {
|
||||
"seed": 241314,
|
||||
"tile_size": IMMENSE_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
"sixty-third": {
|
||||
"slug": "sixty-third-battle-map",
|
||||
"terrain_export": "sixtyThirdBattleMap",
|
||||
"units_export": "sixtyThirdBattleUnits",
|
||||
"ally_positions_export": "sixtyThirdBattleAllyPositions",
|
||||
"out": BATTLE_IMAGE_DIR / "sixty-third-battle-map.webp",
|
||||
"before": BATTLE_IMAGE_DIR / "sixty-third-battle-map.svg",
|
||||
"seed": 241324,
|
||||
"tile_size": VAST_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
"sixty-fourth": {
|
||||
"slug": "sixty-fourth-battle-map",
|
||||
"terrain_export": "sixtyFourthBattleMap",
|
||||
"units_export": "sixtyFourthBattleUnits",
|
||||
"ally_positions_export": "sixtyFourthBattleAllyPositions",
|
||||
"out": BATTLE_IMAGE_DIR / "sixty-fourth-battle-map.webp",
|
||||
"before": BATTLE_IMAGE_DIR / "sixty-fourth-battle-map.svg",
|
||||
"seed": 241334,
|
||||
"tile_size": VAST_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -1264,8 +1285,8 @@ def main() -> None:
|
||||
|
||||
config = dict(MAP_CONFIGS[args.map])
|
||||
if args.tile_size is not None:
|
||||
if args.tile_size < 120:
|
||||
raise ValueError("--tile-size must be 120 or greater")
|
||||
if args.tile_size < VAST_LARGE_MAP_TILE_SIZE:
|
||||
raise ValueError(f"--tile-size must be {VAST_LARGE_MAP_TILE_SIZE} or greater")
|
||||
config["tile_size"] = args.tile_size
|
||||
out_path = args.out or Path(config["out"])
|
||||
before_path = args.before or Path(config["before"])
|
||||
|
||||
Reference in New Issue
Block a user