Replace battle maps 55 and 56 with hand-painted assets
This commit is contained in:
@@ -22,6 +22,7 @@ ULTRA_LARGE_MAP_TILE_SIZE = 160
|
||||
EXTREME_LARGE_MAP_TILE_SIZE = 152
|
||||
MASSIVE_LARGE_MAP_TILE_SIZE = 144
|
||||
COLOSSAL_LARGE_MAP_TILE_SIZE = 136
|
||||
GIGANTIC_LARGE_MAP_TILE_SIZE = 128
|
||||
TILE = DEFAULT_TILE_SIZE
|
||||
RNG = random.Random(240704)
|
||||
|
||||
@@ -541,6 +542,26 @@ MAP_CONFIGS = {
|
||||
"seed": 241234,
|
||||
"tile_size": COLOSSAL_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
"fifty-fifth": {
|
||||
"slug": "fifty-fifth-battle-map",
|
||||
"terrain_export": "fiftyFifthBattleMap",
|
||||
"units_export": "fiftyFifthBattleUnits",
|
||||
"ally_positions_export": "fiftyFifthBattleAllyPositions",
|
||||
"out": BATTLE_IMAGE_DIR / "fifty-fifth-battle-map.webp",
|
||||
"before": BATTLE_IMAGE_DIR / "fifty-fifth-battle-map.svg",
|
||||
"seed": 241244,
|
||||
"tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
"fifty-sixth": {
|
||||
"slug": "fifty-sixth-battle-map",
|
||||
"terrain_export": "fiftySixthBattleMap",
|
||||
"units_export": "fiftySixthBattleUnits",
|
||||
"ally_positions_export": "fiftySixthBattleAllyPositions",
|
||||
"out": BATTLE_IMAGE_DIR / "fifty-sixth-battle-map.webp",
|
||||
"before": BATTLE_IMAGE_DIR / "fifty-sixth-battle-map.svg",
|
||||
"seed": 241254,
|
||||
"tile_size": GIGANTIC_LARGE_MAP_TILE_SIZE,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -597,6 +618,7 @@ def ts_condition_to_python(condition: str) -> str:
|
||||
expression = expression.replace("===", "==")
|
||||
expression = expression.replace("&&", " and ")
|
||||
expression = expression.replace("||", " or ")
|
||||
expression = re.sub(r"!\s*(?!=)", " not ", expression)
|
||||
expression = expression.replace("Math.floor", "math.floor")
|
||||
return expression
|
||||
|
||||
@@ -1179,8 +1201,8 @@ def main() -> None:
|
||||
|
||||
config = dict(MAP_CONFIGS[args.map])
|
||||
if args.tile_size is not None:
|
||||
if args.tile_size < 136:
|
||||
raise ValueError("--tile-size must be 136 or greater")
|
||||
if args.tile_size < 128:
|
||||
raise ValueError("--tile-size must be 128 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