Draw air defense threat/detection ranges.

https://github.com/dcs-liberation/dcs_liberation/issues/2039
This commit is contained in:
Dan Albert
2022-03-02 21:51:16 -08:00
parent 64b01c471b
commit 0bdb4ac894
4 changed files with 87 additions and 1 deletions

View File

@@ -25,7 +25,9 @@ class TgoJs(BaseModel):
detection_ranges = []
else:
threat_ranges = [tgo.threat_range(group).meters for group in tgo.groups]
detection_ranges = [tgo.threat_range(group).meters for group in tgo.groups]
detection_ranges = [
tgo.detection_range(group).meters for group in tgo.groups
]
return TgoJs(
name=tgo.name,
control_point_name=tgo.control_point.name,