mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Issue 3154 (#3447)
This PR addresses #3154 by removing LHAs, CVNs and off map spawn control points from the transit network.
This commit is contained in:
parent
25b93b5d6d
commit
5d0ddea753
@ -5,13 +5,14 @@ Saves from 11.x are not compatible with 12.0.0.
|
||||
## Features/Improvements
|
||||
|
||||
* **[Engine]** Support for DCS 2.9.8.1214.
|
||||
* **[Campaign]** Flights are assigned different callsigns appropriate to the faction.
|
||||
* **[Campaign]** Removed deprecated settings for generating persistent and invulnerable AWACs and tankers.
|
||||
* **[Campaign]** Do not allow aircraft from a captured control point to retreat if the captured control point has a damaged runway.
|
||||
* **[Mods]** F/A-18 E/F/G Super Hornet mod version updated to 2.3.
|
||||
|
||||
## Fixes
|
||||
|
||||
* **[Campaign]** Flights are assigned different callsigns appropriate to the faction.
|
||||
* **[Campaign]** Do not allow aircraft from a captured control point to retreat if the captured control point has a damaged runway.
|
||||
* **[Campaign]** Do not allow ground units to be transferred to LHAs, CVNs or off map spawns.
|
||||
|
||||
# 11.1.1
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ from enum import Enum, auto
|
||||
from typing import Dict, Iterator, List, Optional, Set, Tuple
|
||||
|
||||
from .conflicttheater import ConflictTheater
|
||||
from .controlpoint import ControlPoint
|
||||
from .controlpoint import ControlPoint, ControlPointType
|
||||
|
||||
|
||||
class NoPathError(RuntimeError):
|
||||
@ -160,7 +160,14 @@ class TransitNetworkBuilder:
|
||||
self.airports: Set[ControlPoint] = {
|
||||
cp
|
||||
for cp in self.control_points
|
||||
if cp.is_friendly(for_player) and cp.runway_is_operational()
|
||||
if cp.is_friendly(for_player)
|
||||
and cp.runway_is_operational()
|
||||
and cp.cptype
|
||||
not in [
|
||||
ControlPointType.LHA_GROUP,
|
||||
ControlPointType.AIRCRAFT_CARRIER_GROUP,
|
||||
ControlPointType.OFF_MAP,
|
||||
] # TransitNetwork is for ground units, so do not consider LHAs, CVNs or off map spawns.
|
||||
}
|
||||
|
||||
def build(self) -> TransitNetwork:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user