Updated unit database creation files

This commit is contained in:
Pax1601
2025-08-16 17:09:32 +02:00
parent 151196e5f2
commit 74b446d157
10 changed files with 7567 additions and 67 deletions

View File

@@ -47,8 +47,10 @@ if len(sys.argv) > 1:
print(f"Warning, could not find {unit_name} in classes list. Skipping...")
continue
database[unit_name]["acquisitionRange"] = unitmap[found_name].detection_range
database[unit_name]["engagementRange"] = unitmap[found_name].threat_range
if not "acquisitionRange" in database[unit_name]:
database[unit_name]["acquisitionRange"] = unitmap[found_name].detection_range
if not "engagementRange" in database[unit_name]:
database[unit_name]["engagementRange"] = unitmap[found_name].threat_range
except Exception as e:
print(f"Could not find data for unitof type {unit_name}: {e}, skipping...")