From f797bbb97f3280e94556a204d56aab5a3eb13d4e Mon Sep 17 00:00:00 2001 From: Khopa Date: Sun, 16 Aug 2020 13:11:28 +0200 Subject: [PATCH] Fixed JTAC using code above than 1688 that cannot be used in game. --- gen/armor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/armor.py b/gen/armor.py index 7c2e0f89..bafe8d3c 100644 --- a/gen/armor.py +++ b/gen/armor.py @@ -100,7 +100,7 @@ class GroundConflictGenerator: # Add JTAC if "has_jtac" in self.game.player_faction and self.game.player_faction["has_jtac"] and self.game.settings.include_jtac_if_available: n = "JTAC" + str(self.conflict.from_cp.id) + str(self.conflict.to_cp.id) - code = 1688 + len(self.game.jtacs) + code = 1688 - len(self.game.jtacs) jtac = self.mission.flight_group(country=self.mission.country(self.game.player_country), name=n, aircraft_type=MQ_9_Reaper,