Replace battle maps 57 and 58 with hand-painted assets
This commit is contained in:
@@ -562,6 +562,26 @@ MAP_CONFIGS = {
|
||||
"seed": 241254,
|
||||
"tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
"fifty-seventh": {
|
||||
"slug": "fifty-seventh-battle-map",
|
||||
"terrain_export": "fiftySeventhBattleMap",
|
||||
"units_export": "fiftySeventhBattleUnits",
|
||||
"ally_positions_export": "fiftySeventhBattleAllyPositions",
|
||||
"out": BATTLE_IMAGE_DIR / "fifty-seventh-battle-map.webp",
|
||||
"before": BATTLE_IMAGE_DIR / "fifty-seventh-battle-map.svg",
|
||||
"seed": 241264,
|
||||
"tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
"fifty-eighth": {
|
||||
"slug": "fifty-eighth-battle-map",
|
||||
"terrain_export": "fiftyEighthBattleMap",
|
||||
"units_export": "fiftyEighthBattleUnits",
|
||||
"ally_positions_export": "fiftyEighthBattleAllyPositions",
|
||||
"out": BATTLE_IMAGE_DIR / "fifty-eighth-battle-map.webp",
|
||||
"before": BATTLE_IMAGE_DIR / "fifty-eighth-battle-map.svg",
|
||||
"seed": 241274,
|
||||
"tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -1019,7 +1039,9 @@ def paint_structure(draw: ImageDraw.ImageDraw, x: int, y: int, kind: str) -> Non
|
||||
draw.line((bx - w // 2 - 5, by, bx + w // 2 + 5, by), fill=(230, 170, 74, 72), width=3)
|
||||
for _ in range(5):
|
||||
px = RNG.randint(left + 30, right - 30)
|
||||
py = RNG.randint(top + 120, bottom - 20)
|
||||
ground_top = top + max(28, int(TILE * 0.54))
|
||||
ground_bottom = bottom - max(12, int(TILE * 0.09))
|
||||
py = RNG.randint(ground_top, ground_bottom)
|
||||
draw.line((px, py, px + RNG.randint(18, 34), py + RNG.randint(-4, 5)), fill=(*PALETTE["wood"], 120), width=3)
|
||||
elif kind == "camp":
|
||||
draw.ellipse((left + 24, top + 34, right - 18, bottom - 10), fill=(*PALETTE["road_shadow"], 54))
|
||||
|
||||
Reference in New Issue
Block a user