Fix final country-refactor related issues?

This commit is contained in:
Raffson 2023-05-20 01:36:37 +02:00
parent 1a5e31c01a
commit 5eee136189
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,9 @@ class LogisticsGenerator:
):
# Spawn logisticsunit at pickup zones
logistic_unit = self.mission.static_group(
self.flight.squadron.coalition.faction.country,
self.mission.country(
self.flight.squadron.coalition.faction.country.name
),
f"{self.group.name}logistic",
Fortification.FARP_Ammo_Dump_Coating,
pickup_point,

View File

@ -604,7 +604,7 @@ class HelipadGenerator:
return
# Note: Helipad are generated as neutral object in order not to interfer with
# capture triggers
country = self.game.coalition_for(self.cp.captured).faction.country
country = self.m.country(self.cp.coalition.faction.country.name)
for i, helipad in enumerate(self.cp.helipads):
heading = helipad.heading.degrees