Formatting + type annotations

This commit is contained in:
Raffson
2023-05-18 16:29:20 +02:00
parent da109146c9
commit 978e3e4de2
2 changed files with 4 additions and 3 deletions

View File

@@ -135,7 +135,8 @@ class MissionGenerator:
belligerents = {self.p_country.id, self.e_country.id}
for country_id in country_dict.keys():
if country_id not in belligerents:
self.mission.coalition["neutrals"].add_country(country_dict[country_id]())
c = country_dict[country_id]()
self.mission.coalition["neutrals"].add_country(c)
def add_airfields_to_unit_map(self) -> None:
for control_point in self.game.theater.controlpoints: