Add missing NavalControlPoint case for BAI.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1702
This commit is contained in:
Dan Albert 2021-11-06 16:35:04 -07:00
parent a33104d7c4
commit 7a18d160c8
2 changed files with 4 additions and 1 deletions

View File

@ -51,6 +51,7 @@ Saves from 4.x are not compatible with 5.0.
* **[Mission Generation]** Fixed cases with multiple client flights of the same airframe all received the same preset channels. * **[Mission Generation]** Fixed cases with multiple client flights of the same airframe all received the same preset channels.
* **[Mission Generation]** F-14A is now generated with stored alignment. * **[Mission Generation]** F-14A is now generated with stored alignment.
* **[Mission Generation]** Su-33s set to cold or warm start on the Kuznetsov will always be generated as runway starts to avoid the AI getting stuck. * **[Mission Generation]** Su-33s set to cold or warm start on the Kuznetsov will always be generated as runway starts to avoid the AI getting stuck.
* **[Mission Generation]** Fixed AI not receiving anti-ship tasks against carriers and LHAs.
* **[Mods]** Fixed broken A-4 support causing no weapons to be available. * **[Mods]** Fixed broken A-4 support causing no weapons to be available.
* **[UI]** Selling of Units is now visible again in the UI dialog and shows the correct amount of sold units * **[UI]** Selling of Units is now visible again in the UI dialog and shows the correct amount of sold units
* **[UI]** Fixed bug where an incompatible campaign could be generated if no action is taken on the campaign selection screen. * **[UI]** Fixed bug where an incompatible campaign could be generated if no action is taken on the campaign selection screen.

View File

@ -3,7 +3,7 @@ import logging
from dcs.point import MovingPoint from dcs.point import MovingPoint
from dcs.task import AttackGroup, WeaponType from dcs.task import AttackGroup, WeaponType
from game.theater import TheaterGroundObject from game.theater import NavalControlPoint, TheaterGroundObject
from game.transfers import MultiGroupTransport from game.transfers import MultiGroupTransport
from .pydcswaypointbuilder import PydcsWaypointBuilder from .pydcswaypointbuilder import PydcsWaypointBuilder
@ -18,6 +18,8 @@ class BaiIngressBuilder(PydcsWaypointBuilder):
group_names.append(group.name) group_names.append(group.name)
elif isinstance(target, MultiGroupTransport): elif isinstance(target, MultiGroupTransport):
group_names.append(target.name) group_names.append(target.name)
elif isinstance(target, NavalControlPoint):
group_names.append(target.get_carrier_group_name())
else: else:
logging.error( logging.error(
"Unexpected target type for BAI mission: %s", "Unexpected target type for BAI mission: %s",