add support for neutral FOBs

This commit is contained in:
Eclipse/Druss99
2025-09-23 19:05:38 -04:00
committed by Raffson
parent 9f10ecc884
commit c0748e2a3e
7 changed files with 67 additions and 12 deletions

View File

@@ -225,9 +225,9 @@ class Game:
def neutral_country(self) -> Country:
"""Return the best fitting country that can be used as neutral faction in the generated mission"""
countries_in_use = {self.red.faction.country, self.blue.faction.country}
if UnitedNationsPeacekeepers not in countries_in_use:
if UnitedNationsPeacekeepers() not in countries_in_use:
return UnitedNationsPeacekeepers()
elif Switzerland.name not in countries_in_use:
elif Switzerland() not in countries_in_use:
return Switzerland()
else:
return USAFAggressors()