Will now correctly generate Pretense campaigns with CJTF factions.

This commit is contained in:
MetalStormGhost 2023-11-22 20:13:57 +02:00
parent f4e8e30cb1
commit 00760b831e

View File

@ -135,9 +135,9 @@ class PretenseMissionGenerator(MissionGenerator):
self.mission.coalition["red"].add_country(self.e_country)
# Add CJTF factions to the coalitions, if they're not being used in the campaign
if CombinedJointTaskForcesBlue not in {self.p_country, self.e_country}:
if CombinedJointTaskForcesBlue.id not in {self.p_country.id, self.e_country.id}:
self.mission.coalition["blue"].add_country(CombinedJointTaskForcesBlue())
if CombinedJointTaskForcesRed not in {self.p_country, self.e_country}:
if CombinedJointTaskForcesRed.id not in {self.p_country.id, self.e_country.id}:
self.mission.coalition["red"].add_country(CombinedJointTaskForcesRed())
belligerents = {self.p_country.id, self.e_country.id}