Add a spectator slot.

So I stop accidentally giving orders while testing AI behavior after
waiting 20 minutes for them to get to their objective.
This commit is contained in:
Dan Albert 2021-05-20 21:46:20 -07:00
parent f80b948fb1
commit 6c821039b5

View File

@ -324,13 +324,8 @@ class Operation:
# Setup combined arms parameters # Setup combined arms parameters
cls.current_mission.groundControl.pilot_can_control_vehicles = cls.ca_slots > 0 cls.current_mission.groundControl.pilot_can_control_vehicles = cls.ca_slots > 0
if cls.game.player_country in [ cls.current_mission.groundControl.blue_tactical_commander = cls.ca_slots
country.name cls.current_mission.groundControl.blue_observer = 1
for country in cls.current_mission.coalition["blue"].countries.values()
]:
cls.current_mission.groundControl.blue_tactical_commander = cls.ca_slots
else:
cls.current_mission.groundControl.red_tactical_commander = cls.ca_slots
# Options # Options
forcedoptionsgen = ForcedOptionsGenerator(cls.current_mission, cls.game) forcedoptionsgen = ForcedOptionsGenerator(cls.current_mission, cls.game)