diff --git a/Utils.py b/Utils.py index b0f64517..53650fa0 100644 --- a/Utils.py +++ b/Utils.py @@ -373,6 +373,26 @@ def update_deprecated_args(args): else: args.shuffleganon = not args.no_shuffleganon in truthy + # OW Parallel defaults to TRUE + # Don't do: Yes + # Do: No + if "ow_unparallel" in argVars: + if isinstance(args.ow_parallel, dict): + for player in range(1, players + 1): + args.ow_parallel[player] = not args.ow_unparallel in truthy + else: + args.ow_parallel = not args.ow_unparallel in truthy + + # OW Fog defaults to TRUE + # Don't do: Yes + # Do: No + if "ow_no_fog" in argVars: + if isinstance(args.ow_fog, dict): + for player in range(1, players + 1): + args.ow_fog[player] = not args.ow_no_fog in truthy + else: + args.ow_fog = not args.ow_no_fog in truthy + # Playthrough defaults to TRUE # Don't do: Yes # Do: No diff --git a/resources/app/cli/args.json b/resources/app/cli/args.json index 22044974..7ed5976b 100644 --- a/resources/app/cli/args.json +++ b/resources/app/cli/args.json @@ -187,7 +187,7 @@ }, "ow_unparallel": { "action": "store_true", - "type": "bool" + "dest": "ow_parallel" }, "ow_terrain": { "action": "store_true", @@ -231,7 +231,7 @@ }, "ow_no_fog": { "action": "store_true", - "type": "bool" + "dest": "ow_fog" }, "shuffle": { "choices": [