implement skip_playthrough in mystery
This commit is contained in:
parent
0cb80eadf1
commit
f918efb645
2
Main.py
2
Main.py
|
@ -277,7 +277,7 @@ def main(args, seed=None):
|
|||
|
||||
if args.jsonout:
|
||||
print(json.dumps({**jsonout, 'spoiler': world.spoiler.to_json()}))
|
||||
elif args.create_spoiler and not args.skip_playthrough:
|
||||
elif args.create_spoiler:
|
||||
world.spoiler.to_file(output_path('%s_Spoiler.txt' % outfilebase))
|
||||
|
||||
logger.info('Done. Enjoy.')
|
||||
|
|
|
@ -99,6 +99,8 @@ if __name__ == "__main__":
|
|||
|
||||
if create_spoiler:
|
||||
command += " --create_spoiler"
|
||||
if create_spoiler == 2:
|
||||
command += " --skip_playthrough"
|
||||
if race:
|
||||
command += " --race"
|
||||
if os.path.exists(os.path.join(player_files_path, meta_file_path)):
|
||||
|
|
|
@ -31,6 +31,7 @@ def main():
|
|||
parser.add_argument('--multi', default=1, type=lambda value: min(max(int(value), 1), 255))
|
||||
parser.add_argument('--teams', default=1, type=lambda value: max(int(value), 1))
|
||||
parser.add_argument('--create_spoiler', action='store_true')
|
||||
parser.add_argument('--skip_playthrough', action='store_true')
|
||||
parser.add_argument('--rom')
|
||||
parser.add_argument('--enemizercli')
|
||||
parser.add_argument('--outputpath')
|
||||
|
@ -87,6 +88,7 @@ def main():
|
|||
erargs.name = {x: "" for x in range(1, args.multi + 1)} # only so it can be overwrittin in mystery
|
||||
erargs.create_spoiler = args.create_spoiler
|
||||
erargs.race = args.race
|
||||
erargs.skip_playthrough = args.skip_playthrough
|
||||
erargs.outputname = seedname
|
||||
erargs.outputpath = args.outputpath
|
||||
erargs.teams = args.teams
|
||||
|
|
|
@ -42,15 +42,18 @@ multi_mystery_options:
|
|||
output_path: "MultiMystery"
|
||||
#location of your Enemizer CLI, available here: https://github.com/Bonta0/Enemizer/releases
|
||||
enemizer_path: "EnemizerCLI/EnemizerCLI.Core.exe"
|
||||
#folder from which the player yaml files are pulled from
|
||||
#folder from which the player yaml files are pulled from
|
||||
player_files_path: "Players"
|
||||
#meta file name, within players folder
|
||||
#meta file name, within players folder
|
||||
meta_file_path: "meta.yaml"
|
||||
#automatically launches {player_name}.yaml's ROM file using the OS's default program once generation completes. (likely your emulator)
|
||||
#automatically launches {player_name}.yaml's ROM file using the OS's default program once generation completes. (likely your emulator)
|
||||
#does nothing if the name is not found
|
||||
#example: player_name = "Berserker"
|
||||
player_name: "" # the hosts name
|
||||
#create a spoiler file
|
||||
# 0 -> none
|
||||
# 1 -> full spoiler
|
||||
# 2- -> spoiler without playthrough
|
||||
create_spoiler: 1
|
||||
#Zip the resulting roms
|
||||
#0 -> Don't
|
||||
|
|
Loading…
Reference in New Issue