Add Suppress Spoiler
This commit is contained in:
1
CLI.py
1
CLI.py
@@ -156,6 +156,7 @@ def parse_settings():
|
||||
"ow_palettes": "default",
|
||||
"uw_palettes": "default",
|
||||
|
||||
"suppress_spoiler": True,
|
||||
"create_spoiler": False,
|
||||
"skip_playthrough": False,
|
||||
"calc_playthrough": True,
|
||||
|
||||
9
Utils.py
9
Utils.py
@@ -251,6 +251,15 @@ def print_wiki_doors_by_region(d_regions, world, player):
|
||||
def update_deprecated_args(args):
|
||||
argVars = vars(args)
|
||||
truthy = [ 1, True, "True", "true" ]
|
||||
# Don't do: Yes
|
||||
# Do: No
|
||||
if "suppress_spoiler" in argVars:
|
||||
args.create_spoiler = args.suppress_spoiler not in truthy
|
||||
# Don't do: No
|
||||
# Do: Yes
|
||||
if "create_spoiler" in argVars:
|
||||
args.suppress_spoiler = not args.create_spoiler in truthy
|
||||
|
||||
# Don't do: Yes
|
||||
# Do: No
|
||||
if "suppress_rom" in argVars:
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{
|
||||
"lang": {},
|
||||
"create_spoiler": {
|
||||
"action": "store_true",
|
||||
"action": "store_false",
|
||||
"type": "bool"
|
||||
},
|
||||
"suppress_spoiler": {
|
||||
"action": "store_true",
|
||||
"dest": "create_spoiler",
|
||||
"help": "suppress"
|
||||
},
|
||||
"logic": {
|
||||
"choices": [
|
||||
"noglitches",
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
"randomizer.gameoptions.sprite.unchanged": "(unchanged)",
|
||||
|
||||
|
||||
"randomizer.generation.spoiler": "Create Spoiler Log",
|
||||
"randomizer.generation.createspoiler": "Create Spoiler Log",
|
||||
"randomizer.generation.createrom": "Create Patched ROM",
|
||||
"randomizer.generation.calcplaythrough": "Calculate Playthrough",
|
||||
"randomizer.generation.usestartinventory": "Use Starting Inventory",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"checkboxes": {
|
||||
"spoiler": { "type": "checkbox" },
|
||||
"createspoiler": { "type": "checkbox" },
|
||||
"createrom": { "type": "checkbox" },
|
||||
"calcplaythrough": { "type": "checkbox" },
|
||||
"usestartinventory": { "type": "checkbox" },
|
||||
|
||||
@@ -101,7 +101,7 @@ SETTINGSTOPROCESS = {
|
||||
"uwpalettes": "uw_palettes"
|
||||
},
|
||||
"generation": {
|
||||
"spoiler": "create_spoiler",
|
||||
"createspoiler": "create_spoiler",
|
||||
"createrom": "create_rom",
|
||||
"calcplaythrough": "calc_playthrough",
|
||||
"usestartinventory": "usestartinventory",
|
||||
|
||||
Reference in New Issue
Block a user