Merge remote-tracking branch 'remotes/dcs-retribution/dcs-retribution/dev' into pretense-generator

This commit is contained in:
MetalStormGhost
2024-07-17 19:40:57 +03:00
92 changed files with 4016 additions and 1772 deletions

View File

@@ -545,6 +545,12 @@ class Faction:
self.remove_preset("LvS-103 Rb103A Mobile")
self.remove_preset("LvS-103 Rb103B")
self.remove_preset("LvS-103 Rb103B Mobile")
if not mod_settings.coldwarassets:
self.remove_aircraft("B_47")
self.remove_aircraft("Tu-4K")
self.remove_aircraft("Tu-16")
self.remove_aircraft("tu_22D")
self.remove_aircraft("tu_22KD")
# SWPack
if not mod_settings.SWPack:
self.remove_aircraft("AWINGA")

View File

@@ -331,6 +331,11 @@ RADIOS: List[Radio] = [
RadioRange(MHz(30), MHz(88), kHz(25), Modulation.AM),
),
),
# F-86 Sabre
Radio(
"AN/ARC-27",
(RadioRange(MHz(225), MHz(400), kHz(100), Modulation.AM),),
),
]

View File

@@ -96,6 +96,7 @@ class ModSettings:
ov10a_bronco: bool = False
spanishnavypack: bool = False
swedishmilitaryassetspack: bool = False
coldwarassets: bool = False
SWPack: bool = False

View File

@@ -376,7 +376,7 @@ class NavalGroundObject(TheaterGroundObject, ABC):
@property
def purchasable(self) -> bool:
return False
return self.control_point.coalition.game.turn == 0
@property
def is_iads(self) -> bool:
@@ -460,7 +460,7 @@ class MissileSiteGroundObject(TheaterGroundObject):
@property
def purchasable(self) -> bool:
return False
return self.control_point.coalition.game.turn == 0
@property
def should_head_to_conflict(self) -> bool:
@@ -501,7 +501,7 @@ class CoastalSiteGroundObject(TheaterGroundObject):
@property
def purchasable(self) -> bool:
return False
return self.control_point.coalition.game.turn == 0
@property
def should_head_to_conflict(self) -> bool:

View File

@@ -18,6 +18,7 @@ from dcs.terrain import (
TheChannel,
Sinai,
Kola,
Afghanistan,
)
from .conflicttheater import ConflictTheater
@@ -36,6 +37,7 @@ ALL_TERRAINS = [
Syria(),
Sinai(),
Kola(),
Afghanistan(),
]
TERRAINS_BY_NAME = {t.name: t for t in ALL_TERRAINS}