From 2bd5ab06a7a3618080aa20a31f764a3881c72ef1 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 5 Jan 2021 00:42:30 -0800 Subject: [PATCH] More weapon data. https://github.com/Khopa/dcs_liberation/issues/490 --- changelog.md | 2 +- game/data/weapons.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 0348e257..e8db80b6 100644 --- a/changelog.md +++ b/changelog.md @@ -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]** Carriers and off-map spawns generate no income (previously $20M like airbases). * **[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 diff --git a/game/data/weapons.py b/game/data/weapons.py index dbd45289..ca5d6260 100644 --- a/game/data/weapons.py +++ b/game/data/weapons.py @@ -160,6 +160,13 @@ _WEAPON_FALLBACKS = [ # AIM-9L (Weapons.AIM_9L_Sidewinder_IR_AAM, 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( @@ -217,4 +224,7 @@ WEAPON_INTRODUCTION_YEARS = { # AIM-9L Weapon.from_pydcs(Weapons.AIM_9L_Sidewinder_IR_AAM): 1977, Weapon.from_pydcs(Weapons.LAU_7_AIM_9L): 1977, + + # R-77 (AA-12) + Weapon.from_pydcs(Weapons.R_77): 2002, }