mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Infantry is only generated for IFV and APC groups
This commit is contained in:
parent
92e9e8c56a
commit
7c29ea836c
14
gen/armor.py
14
gen/armor.py
@ -675,12 +675,14 @@ class GroundConflictGenerator:
|
|||||||
else:
|
else:
|
||||||
g.set_skill(self.game.settings.enemy_vehicle_skill)
|
g.set_skill(self.game.settings.enemy_vehicle_skill)
|
||||||
positioned_groups.append((g, group))
|
positioned_groups.append((g, group))
|
||||||
self.gen_infantry_group_for_group(
|
|
||||||
g,
|
if group.role in [CombatGroupRole.APC, CombatGroupRole.IFV]:
|
||||||
is_player,
|
self.gen_infantry_group_for_group(
|
||||||
self.mission.country(country),
|
g,
|
||||||
opposite_heading(spawn_heading)
|
is_player,
|
||||||
)
|
self.mission.country(country),
|
||||||
|
opposite_heading(spawn_heading)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
logging.warning(f"Unable to get valid position for {group}")
|
logging.warning(f"Unable to get valid position for {group}")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user