JSON Spoiler output
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
|||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
*_Spoiler.txt
|
*_Spoiler.txt
|
||||||
|
*_Spoiler.json
|
||||||
*.pyc
|
*.pyc
|
||||||
*.sfc
|
*.sfc
|
||||||
*.srm
|
*.srm
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import queue
|
import queue
|
||||||
|
import os
|
||||||
import threading
|
import threading
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
|
|
||||||
|
|||||||
2
Main.py
2
Main.py
@@ -304,6 +304,8 @@ def main(args, seed=None, fish=None):
|
|||||||
elif args.create_spoiler:
|
elif args.create_spoiler:
|
||||||
logger.info(world.fish.translate("cli","cli","patching.spoiler"))
|
logger.info(world.fish.translate("cli","cli","patching.spoiler"))
|
||||||
world.spoiler.to_file(output_path('%s_Spoiler.txt' % outfilebase))
|
world.spoiler.to_file(output_path('%s_Spoiler.txt' % outfilebase))
|
||||||
|
with open(output_path('%s_Spoiler.json' % outfilebase), 'w') as outfile:
|
||||||
|
outfile.write(world.spoiler.to_json())
|
||||||
|
|
||||||
YES = world.fish.translate("cli","cli","yes")
|
YES = world.fish.translate("cli","cli","yes")
|
||||||
NO = world.fish.translate("cli","cli","no")
|
NO = world.fish.translate("cli","cli","no")
|
||||||
|
|||||||
Reference in New Issue
Block a user