mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add procurement automation for players.
The allows the players to use the same auto-purchase mechanics that the AI uses. The behavior is very bad, but it's no worse than what OPFOR deals with. There's a lot that needs to be improved before this is really a good choice for the player: * Option to adjust budget balance between front lines and airbases. * Disallow negative budgets (which incidentally will cause more aircraft to be purchased, since the armor purchases currently accidentally spend the aircraft budget). * Buy less randomly: https://github.com/Khopa/dcs_liberation/issues/361. * Obey parking limits. * Use the delivery events rather than instant delivery (also allows the player to cancel orders they don't want). Fixes https://github.com/Khopa/dcs_liberation/issues/362
This commit is contained in:
@@ -243,9 +243,9 @@ class Game:
|
||||
self,
|
||||
for_player=True,
|
||||
faction=self.player_faction,
|
||||
manage_runways=False,
|
||||
manage_front_line=False,
|
||||
manage_aircraft=False
|
||||
manage_runways=self.settings.automate_runway_repair,
|
||||
manage_front_line=self.settings.automate_front_line_reinforcements,
|
||||
manage_aircraft=self.settings.automate_aircraft_reinforcements
|
||||
).spend_budget(self.budget)
|
||||
|
||||
if not no_action and self.turn > 1:
|
||||
|
||||
@@ -25,6 +25,11 @@ class Settings:
|
||||
player_income_multiplier: float = 1.0
|
||||
enemy_income_multiplier: float = 1.0
|
||||
|
||||
# Campaign management
|
||||
automate_runway_repair: bool = False
|
||||
automate_front_line_reinforcements: bool = False
|
||||
automate_aircraft_reinforcements: bool = False
|
||||
|
||||
# Performance oriented
|
||||
perf_red_alert_state: bool = True
|
||||
perf_smoke_gen: bool = True
|
||||
|
||||
Reference in New Issue
Block a user