Extend add-building candidate bridge artifact

This commit is contained in:
Jan Petykiewicz 2026-04-19 02:48:05 -07:00
commit 7d9240c277
4 changed files with 105 additions and 54 deletions

View file

@ -238,9 +238,13 @@ def classify(
parameter_family = "world_building_spawn"
binding = building_bindings.get(descriptor_id)
if binding is not None:
label = f"Add Building {binding['candidate_name']}"
candidate_name = binding.get("candidate_name")
if candidate_name:
label = f"Add Building {candidate_name}"
else:
label = f"Add Building Candidate Slot {int(binding['candidate_id']) + 1}"
else:
label = f"Add Building Slot {descriptor_id - 502}"
label = f"Add Building Candidate Slot {descriptor_id - 502}"
runtime_status = "shell_owned"
elif "Earthquake" in label or "Storm" in label:
parameter_family = "world_disaster_scalar"