Skip to content

Commit

Permalink
Remove deprecated settings (#3418)
Browse files Browse the repository at this point in the history
Remove settings that have been marked as deprecated for a while.
  • Loading branch information
zhexu14 committed Jun 29, 2024
1 parent 38c3cdb commit 529cc31
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 250 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Saves from 11.x are not compatible with 12.0.0.

## Features/Improvements

* **[Campaign]** Removed deprecated settings for generating persistent and invulnerable AWACs and tankers.
* **[Mods]** F/A-18 E/F/G Super Hornet mod version updated to 2.3.

## Fixes
Expand Down
210 changes: 0 additions & 210 deletions game/missiongenerator/airsupportgenerator.py

This file was deleted.

2 changes: 1 addition & 1 deletion game/missiongenerator/briefinggenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from game.runways import RunwayData
from game.theater import ControlPoint, FrontLine
from .aircraft.flightdata import FlightData
from .airsupportgenerator import AwacsInfo, TankerInfo
from .missiondata import AwacsInfo, TankerInfo
from .flotgenerator import JtacInfo

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion game/missiongenerator/kneeboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from game.utils import Distance, UnitSystem, meters, mps, pounds
from game.weather.weather import Weather
from .aircraft.flightdata import FlightData
from .airsupportgenerator import AwacsInfo, TankerInfo
from .missiondata import AwacsInfo, TankerInfo
from .briefinggenerator import CommInfo, JtacInfo, MissionInfoGenerator
from ..ato import Package

Expand Down
16 changes: 2 additions & 14 deletions game/missiongenerator/missiongenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from game.theater.bullseye import Bullseye
from game.unitmap import UnitMap
from .airconflictdescription import AirConflictDescription
from .airsupportgenerator import AirSupportGenerator
from .briefinggenerator import BriefingGenerator, MissionInfoGenerator
from .cargoshipgenerator import CargoShipGenerator
from .convoygenerator import ConvoyGenerator
Expand Down Expand Up @@ -240,17 +239,6 @@ def generate_ground_conflicts(self) -> None:
def generate_air_units(self, tgo_generator: TgoGenerator) -> None:
"""Generate the air units for the Operation"""

# Air Support (Tanker & Awacs)
air_support_generator = AirSupportGenerator(
self.mission,
AirConflictDescription.for_theater(self.game.theater),
self.game,
self.radio_registry,
self.tacan_registry,
self.mission_data,
)
air_support_generator.generate()

# Generate Aircraft Activity on the map
aircraft_generator = AircraftGenerator(
self.mission,
Expand All @@ -260,7 +248,7 @@ def generate_air_units(self, tgo_generator: TgoGenerator) -> None:
self.radio_registry,
self.tacan_registry,
self.unit_map,
mission_data=air_support_generator.mission_data,
mission_data=self.mission_data,
helipads=tgo_generator.helipads,
)

Expand All @@ -286,7 +274,7 @@ def generate_air_units(self, tgo_generator: TgoGenerator) -> None:
if not flight.client_units:
continue
flight.aircraft_type.assign_channels_for_flight(
flight, air_support_generator.mission_data
flight, self.mission_data
)

self.mission_data.briefing_data = aircraft_generator.briefing_data
Expand Down
24 changes: 0 additions & 24 deletions game/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,30 +173,6 @@ class Settings:
"extremely incomplete so does not affect all weapons."
),
)
disable_legacy_aewc: bool = boolean_option(
"Spawn invulnerable, always-available AEW&C aircraft (deprecated)",
page=CAMPAIGN_MANAGEMENT_PAGE,
section=GENERAL_SECTION,
default=True,
invert=True,
detail=(
"If checked, an invulnerable friendly AEW&C aircraft that begins the "
"mission on station will be be spawned. This behavior will be removed in a "
"future release."
),
)
disable_legacy_tanker: bool = boolean_option(
"Spawn invulnerable, always-available tanker aircraft (deprecated)",
page=CAMPAIGN_MANAGEMENT_PAGE,
section=GENERAL_SECTION,
default=True,
invert=True,
detail=(
"If checked, an invulnerable friendly tanker aircraft that begins the "
"mission on station will be be spawned. This behavior will be removed in a "
"future release."
),
)
# Pilots and Squadrons
ai_pilot_levelling: bool = boolean_option(
"Allow AI pilot leveling",
Expand Down

0 comments on commit 529cc31

Please sign in to comment.