mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Cleaned up some code.
This commit is contained in:
parent
51a4b6603d
commit
77060031da
@ -56,7 +56,7 @@ class PretenseLuaGenerator(LuaGenerator):
|
||||
self.mission.triggerrules.triggers.remove(t)
|
||||
self.mission.triggerrules.triggers.append(t)
|
||||
|
||||
def generate_pretense_land_upgrade_supply(self, cp_name: str, cp_side: int):
|
||||
def generate_pretense_land_upgrade_supply(self, cp_name: str, cp_side: int) -> str:
|
||||
lua_string_zones = ""
|
||||
cp_name_trimmed = "".join([i for i in cp_name.lower() if i.isalnum()])
|
||||
cp_side_str = "blue" if cp_side == PRETENSE_BLUE_SIDE else "red"
|
||||
|
||||
@ -450,8 +450,8 @@ class PretenseTgoGenerator(TgoGenerator):
|
||||
else:
|
||||
other_coalition = coalition
|
||||
country = self.m.country(other_coalition.faction.country.name)
|
||||
new_ground_object: TheaterGroundObject
|
||||
for ground_object in cp.ground_objects:
|
||||
generator: GroundObjectGenerator
|
||||
if isinstance(ground_object, BuildingGroundObject):
|
||||
new_ground_object = BuildingGroundObject(
|
||||
name=ground_object.name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user