Merge branch 'OverworldShuffle' of github.com:codemann8/ALttPDoorRandomizer into OverworldShuffle
This commit is contained in:
14
Utils.py
14
Utils.py
@@ -318,6 +318,10 @@ def update_deprecated_args(args):
|
||||
if args:
|
||||
argVars = vars(args)
|
||||
truthy = [1, True, "True", "true"]
|
||||
if "multi" in argVars:
|
||||
players = int(args.multi)
|
||||
else:
|
||||
players = 1
|
||||
# Hints default to FALSE
|
||||
# Don't do: Yes
|
||||
# Do: No
|
||||
@@ -351,6 +355,16 @@ def update_deprecated_args(args):
|
||||
if "create_rom" in argVars:
|
||||
args.suppress_rom = not args.create_rom in truthy
|
||||
|
||||
# Shuffle Ganon defaults to TRUE
|
||||
# Don't do: Yes
|
||||
# Do: No
|
||||
if "no_shuffleganon" in argVars:
|
||||
if isinstance(args.shuffleganon, dict):
|
||||
for player in range(1, players + 1):
|
||||
args.shuffleganon[player] = not args.no_shuffleganon in truthy
|
||||
else:
|
||||
args.shuffleganon = not args.no_shuffleganon in truthy
|
||||
|
||||
# Playthrough defaults to TRUE
|
||||
# Don't do: Yes
|
||||
# Do: No
|
||||
|
||||
Reference in New Issue
Block a user