Mystery spoiler fixes

This commit is contained in:
codemann8
2024-08-21 04:54:36 -05:00
parent 89e91a85fd
commit a3be8d6d33
3 changed files with 5 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ def main(args, seed=None, fish=None):
if world.spoiler_mode != 'none' and not args.jsonout:
logger.info(world.fish.translate("cli", "cli", "create.meta"))
world.spoiler.meta_to_file(output_path(f'{outfilebase}_Spoiler.txt'))
if args.mystery and not (args.suppress_meta or args.create_spoiler):
if args.mystery and not (args.suppress_meta or args.spoiler != 'none'):
world.spoiler.mystery_meta_to_file(output_path(f'{outfilebase}_meta.txt'))
for player in range(1, world.players + 1):
@@ -362,7 +362,7 @@ def main(args, seed=None, fish=None):
with open(output_path('%s_multidata' % outfilebase), 'wb') as f:
f.write(multidata)
if args.mystery and not (args.suppress_meta or args.create_spoiler):
if args.mystery and not (args.suppress_meta or args.spoiler not in ['full']):
world.spoiler.hashes_to_file(output_path(f'{outfilebase}_meta.txt'))
elif world.spoiler_mode != 'none' and not args.jsonout:
world.spoiler.hashes_to_file(output_path(f'{outfilebase}_Spoiler.txt'))