More weapon data.

https://github.com/Khopa/dcs_liberation/issues/490
This commit is contained in:
Dan Albert 2021-01-05 00:42:30 -08:00
parent e174c1b147
commit 2bd5ab06a7
2 changed files with 11 additions and 1 deletions

View File

@ -19,7 +19,7 @@ Saves from 2.3 are not compatible with 2.4.
* **[Economy]** FOBs generate only $10M per turn (previously $20M like airbases). * **[Economy]** FOBs generate only $10M per turn (previously $20M like airbases).
* **[Economy]** Carriers and off-map spawns generate no income (previously $20M like airbases). * **[Economy]** Carriers and off-map spawns generate no income (previously $20M like airbases).
* **[UI]** Multi-SAM objectives now show threat and detection rings per group. * **[UI]** Multi-SAM objectives now show threat and detection rings per group.
* **[Factions]** Initial implementation of date-based loadout restriction. Only a small number of weapons are currently handled. * **[Factions]** Initial implementation of date-based loadout restriction. Active radar homing missiles mostly handled and little else.
## Fixes ## Fixes

View File

@ -160,6 +160,13 @@ _WEAPON_FALLBACKS = [
# AIM-9L # AIM-9L
(Weapons.AIM_9L_Sidewinder_IR_AAM, None), (Weapons.AIM_9L_Sidewinder_IR_AAM, None),
(Weapons.LAU_7_AIM_9L, None), (Weapons.LAU_7_AIM_9L, None),
# R-27 (AA-10 Alamo)
(Weapons.R_27ER, Weapons.R_27R),
(Weapons.R_27ET, Weapons.R_27T),
# R-77 (AA-12)
(Weapons.R_77, Weapons.R_27ER),
] ]
WEAPON_FALLBACK_MAP: Dict[Weapon, Optional[Weapon]] = defaultdict( WEAPON_FALLBACK_MAP: Dict[Weapon, Optional[Weapon]] = defaultdict(
@ -217,4 +224,7 @@ WEAPON_INTRODUCTION_YEARS = {
# AIM-9L # AIM-9L
Weapon.from_pydcs(Weapons.AIM_9L_Sidewinder_IR_AAM): 1977, Weapon.from_pydcs(Weapons.AIM_9L_Sidewinder_IR_AAM): 1977,
Weapon.from_pydcs(Weapons.LAU_7_AIM_9L): 1977, Weapon.from_pydcs(Weapons.LAU_7_AIM_9L): 1977,
# R-77 (AA-12)
Weapon.from_pydcs(Weapons.R_77): 2002,
} }