mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Changes
* Fix chests always being for yourself AND intended recipient for Race Rom seeds. * Fix MultiMystery not being able to correctly pack Race Rom seeds into a zip file. * Add tags to multidata for Race rom, Spoiler log, and Playthrough if spoiler log was generated.
This commit is contained in:
9
Main.py
9
Main.py
@@ -296,6 +296,13 @@ def main(args, seed=None):
|
||||
for future in roms:
|
||||
rom_name = future.result()
|
||||
rom_names.append(rom_name)
|
||||
multidatatags = ["ER"]
|
||||
if args.race:
|
||||
multidatatags.append("Race")
|
||||
if args.create_spoiler:
|
||||
multidatatags.append("Spoiler")
|
||||
if not args.skip_playthrough:
|
||||
multidatatags.append("Play through")
|
||||
multidata = zlib.compress(json.dumps({"names": parsed_names,
|
||||
# backwards compat for < 2.4.1
|
||||
"roms": [(slot, team, list(name.encode()))
|
||||
@@ -311,7 +318,7 @@ def main(args, seed=None):
|
||||
"er_hint_data": er_hint_data,
|
||||
"precollected_items": precollected_items,
|
||||
"version": _version_tuple,
|
||||
"tags": ["ER"]
|
||||
"tags": multidatatags
|
||||
}).encode("utf-8"), 9)
|
||||
|
||||
with open(output_path('%s.multidata' % outfilebase), 'wb') as f:
|
||||
|
Reference in New Issue
Block a user