Added mizdata preset locations for the channel map.

This commit is contained in:
Khopa 2020-11-11 14:27:13 +01:00
parent 1fcceb0901
commit 7a5ce98569
9 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from pathlib import Path from pathlib import Path
from typing import List from typing import List
from dcs import Mission from dcs import Mission, ships
from dcs.vehicles import MissilesSS from dcs.vehicles import MissilesSS
from gen.locations.preset_control_point_locations import PresetControlPointLocations from gen.locations.preset_control_point_locations import PresetControlPointLocations
@ -37,7 +37,7 @@ class PresetLocationFinder:
vehicle_group.name)) vehicle_group.name))
for ship_group in m.country("USA").ship_group: for ship_group in m.country("USA").ship_group:
if len(ship_group.units) > 0: if len(ship_group.units) > 0 and ship_group.units[0].type == ships.Oliver_Hazzard_Perry_class.id:
offshore_locations.append(PresetLocation(ship_group.position, offshore_locations.append(PresetLocation(ship_group.position,
ship_group.units[0].heading, ship_group.units[0].heading,
ship_group.name)) ship_group.name))

Binary file not shown.

Binary file not shown.