mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add campaign property for campaign start time.
This field is optional. Omitting the field (or using only a date instead of a full timestamp) will use the old behavior of picking a random daylight hour to start the campaign. This doesn't include any UI in the new game wizard yet. This is only a campaign yaml option. https://github.com/dcs-liberation/dcs_liberation/issues/2400
This commit is contained in:
@@ -286,6 +286,7 @@ def create_game(
|
||||
),
|
||||
GeneratorSettings(
|
||||
start_date=start_date,
|
||||
start_time=campaign.recommended_start_time,
|
||||
player_budget=DEFAULT_BUDGET,
|
||||
enemy_budget=DEFAULT_BUDGET,
|
||||
inverted=inverted,
|
||||
|
||||
@@ -145,6 +145,7 @@ class NewGameWizard(QtWidgets.QWizard):
|
||||
)
|
||||
generator_settings = GeneratorSettings(
|
||||
start_date=start_date,
|
||||
start_time=campaign.recommended_start_time,
|
||||
player_budget=int(self.field("starting_money")),
|
||||
enemy_budget=int(self.field("enemy_starting_money")),
|
||||
# QSlider forces integers, so we use 1 to 50 and divide by 10 to
|
||||
|
||||
Reference in New Issue
Block a user