mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Special case turn 0 for recruitment.
We want there to be units on the front line on turn 1 regardless of factory locations, so bypass the recruitment restrictions on turn 0. https://github.com/Khopa/dcs_liberation/issues/986
This commit is contained in:
@@ -329,6 +329,11 @@ class ControlPoint(MissionTarget, ABC):
|
||||
if not game.settings.enable_new_ground_unit_recruitment:
|
||||
return True
|
||||
|
||||
if game.turn == 0:
|
||||
# Allow units to be recruited anywhere on turn 0 to avoid long delays to get
|
||||
# everyone to the front line.
|
||||
return True
|
||||
|
||||
return self.has_factory
|
||||
|
||||
def has_ground_unit_source(self, game: Game) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user