1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Fix variant generation

This commit is contained in:
NG (Graham)
2025-05-22 20:40:39 -04:00
parent 1aeaf84326
commit b83a23c115
2 changed files with 140 additions and 112 deletions

View File

@@ -357,6 +357,9 @@ def apply_entry_overrides(entry: dict, cubes_data: dict, weapons_data: dict, mov
entry["info"]["category"] = cube_data["ItemCategory"]
if "PlacementFaces" in cube_data:
entry["info"]["placements"] = cube_data["PlacementFaces"]
if "variantOf" in cube_data:
entry["info"]["variant_of"] = int(cube_data["variantOf"], 16)
entry["isVariant"] = True
if movement_data is not None and not entry["isVariant"]:
if entry["info"]["category"] in movement_data["Movements"]:
if entry["info"]["size"] in movement_data["Movements"][entry["info"]["category"]]: