Fixed Shuffle Ganon CLI/GUI issue
This commit is contained in:
11
Utils.py
11
Utils.py
@@ -358,19 +358,12 @@ def update_deprecated_args(args):
|
|||||||
# Shuffle Ganon defaults to TRUE
|
# Shuffle Ganon defaults to TRUE
|
||||||
# Don't do: Yes
|
# Don't do: Yes
|
||||||
# Do: No
|
# Do: No
|
||||||
if isinstance(args.shuffleganon, bool):
|
|
||||||
if "no_shuffleganon" in argVars:
|
if "no_shuffleganon" in argVars:
|
||||||
args.shuffleganon = not args.no_shuffleganon in truthy
|
if isinstance(args.shuffleganon, dict):
|
||||||
else:
|
|
||||||
for player in range(1, players + 1):
|
for player in range(1, players + 1):
|
||||||
args.shuffleganon[player] = not args.no_shuffleganon in truthy
|
args.shuffleganon[player] = not args.no_shuffleganon in truthy
|
||||||
|
|
||||||
if isinstance(args.no_shuffleganon, bool):
|
|
||||||
if "shuffleganon" in argVars:
|
|
||||||
args.no_shuffleganon = not args.shuffleganon in truthy
|
|
||||||
else:
|
else:
|
||||||
for player in range(1, players + 1):
|
args.shuffleganon = not args.no_shuffleganon in truthy
|
||||||
args.no_shuffleganon[player] = not args.shuffleganon in truthy
|
|
||||||
|
|
||||||
# Playthrough defaults to TRUE
|
# Playthrough defaults to TRUE
|
||||||
# Don't do: Yes
|
# Don't do: Yes
|
||||||
|
|||||||
@@ -358,7 +358,7 @@
|
|||||||
"help": "suppress"
|
"help": "suppress"
|
||||||
},
|
},
|
||||||
"shuffleganon": {
|
"shuffleganon": {
|
||||||
"action": "store_false",
|
"action": "store_true",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"help": "suppress"
|
"help": "suppress"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user