diff --git a/CHANGELOG.md b/CHANGELOG.md index 50b602c..2f30dcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Changed - Changed sprites for Flashlight, Blindfold, Light Beam, Sonic Boom, Prime 1 Super Missiles, Flamethrower, Ice Spreader and Wave Buster +- The yams.json file is now deleted for race seeds. ## [1.2.8] - 2024-01-27 diff --git a/am2r_yams/wrapper.py b/am2r_yams/wrapper.py index 6f052f0..a6f4741 100644 --- a/am2r_yams/wrapper.py +++ b/am2r_yams/wrapper.py @@ -80,6 +80,9 @@ def patch_game( self.csharp_patcher.Main(input_data_win, output_data_win, json_file) # Move temp dir to output dir and get rid of it. Also delete original data.win + # Also delete the json if we're on a race seed. + if patch_data.get("configuration_identifier", {}).get("contains_spoiler", False): + input_data_win_path.parent.joinpath("yams-data.json").unlink() input_data_win_path.unlink() progress_update("Moving to output directory...", 0.8) shutil.copytree(tempdir.name, output_path, dirs_exist_ok=True)