Replace battle maps 49 and 50 with hand-painted assets

This commit is contained in:
2026-07-09 21:13:59 +09:00
parent 726a4e6e3c
commit 03ec1ca86f
11 changed files with 35 additions and 159 deletions

View File

@@ -19,6 +19,7 @@ DEFAULT_TILE_SIZE = 224
LARGE_MAP_TILE_SIZE = 192
VERY_LARGE_MAP_TILE_SIZE = 176
ULTRA_LARGE_MAP_TILE_SIZE = 160
EXTREME_LARGE_MAP_TILE_SIZE = 152
TILE = DEFAULT_TILE_SIZE
RNG = random.Random(240704)
@@ -478,6 +479,26 @@ MAP_CONFIGS = {
"seed": 241174,
"tile_size": ULTRA_LARGE_MAP_TILE_SIZE,
},
"forty-ninth": {
"slug": "forty-ninth-battle-map",
"terrain_export": "fortyNinthBattleMap",
"units_export": "fortyNinthBattleUnits",
"ally_positions_export": "fortyNinthBattleAllyPositions",
"out": BATTLE_IMAGE_DIR / "forty-ninth-battle-map.webp",
"before": BATTLE_IMAGE_DIR / "forty-ninth-battle-map.svg",
"seed": 241184,
"tile_size": EXTREME_LARGE_MAP_TILE_SIZE,
},
"fiftieth": {
"slug": "fiftieth-battle-map",
"terrain_export": "fiftiethBattleMap",
"units_export": "fiftiethBattleUnits",
"ally_positions_export": "fiftiethBattleAllyPositions",
"out": BATTLE_IMAGE_DIR / "fiftieth-battle-map.webp",
"before": BATTLE_IMAGE_DIR / "fiftieth-battle-map.svg",
"seed": 241194,
"tile_size": EXTREME_LARGE_MAP_TILE_SIZE,
},
}
@@ -1116,8 +1137,8 @@ def main() -> None:
config = dict(MAP_CONFIGS[args.map])
if args.tile_size is not None:
if args.tile_size < 160:
raise ValueError("--tile-size must be 160 or greater")
if args.tile_size < 144:
raise ValueError("--tile-size must be 144 or greater")
config["tile_size"] = args.tile_size
out_path = args.out or Path(config["out"])
before_path = args.before or Path(config["before"])