mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add --cheats to the CLI mission generator.
Doesn't enable the red ATO display because that's a lot of clutter, but enables the commonly needed for debugging things.
This commit is contained in:
parent
81d5cddac9
commit
480039ca50
@ -158,6 +158,8 @@ def parse_args() -> argparse.Namespace:
|
|||||||
"--inverted", action="store_true", help="Invert the campaign."
|
"--inverted", action="store_true", help="Invert the campaign."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
new_game.add_argument("--cheats", action="store_true", help="Enable cheats.")
|
||||||
|
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
@ -168,6 +170,7 @@ def create_game(
|
|||||||
supercarrier: bool,
|
supercarrier: bool,
|
||||||
auto_procurement: bool,
|
auto_procurement: bool,
|
||||||
inverted: bool,
|
inverted: bool,
|
||||||
|
cheats: bool,
|
||||||
) -> Game:
|
) -> Game:
|
||||||
campaign = Campaign.from_json(campaign_path)
|
campaign = Campaign.from_json(campaign_path)
|
||||||
generator = GameGenerator(
|
generator = GameGenerator(
|
||||||
@ -180,6 +183,8 @@ def create_game(
|
|||||||
automate_front_line_reinforcements=auto_procurement,
|
automate_front_line_reinforcements=auto_procurement,
|
||||||
automate_aircraft_reinforcements=auto_procurement,
|
automate_aircraft_reinforcements=auto_procurement,
|
||||||
enable_new_ground_unit_recruitment=True,
|
enable_new_ground_unit_recruitment=True,
|
||||||
|
enable_frontline_cheats=cheats,
|
||||||
|
enable_base_capture_cheat=cheats,
|
||||||
),
|
),
|
||||||
GeneratorSettings(
|
GeneratorSettings(
|
||||||
start_date=datetime.today(),
|
start_date=datetime.today(),
|
||||||
@ -227,6 +232,7 @@ def main():
|
|||||||
args.supercarrier,
|
args.supercarrier,
|
||||||
args.auto_procurement,
|
args.auto_procurement,
|
||||||
args.inverted,
|
args.inverted,
|
||||||
|
args.cheats,
|
||||||
)
|
)
|
||||||
|
|
||||||
run_ui(game)
|
run_ui(game)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user