From 1350a302819c97a74dc201258cf3bf3ad1cb71d0 Mon Sep 17 00:00:00 2001 From: "Minnie A. Trethewey (Mike)" Date: Tue, 28 Mar 2023 21:05:44 -0700 Subject: [PATCH] Fix Song from Malon Works on #1 --- resources/ci/common/reset.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/ci/common/reset.py b/resources/ci/common/reset.py index 1b656ac..0d59324 100644 --- a/resources/ci/common/reset.py +++ b/resources/ci/common/reset.py @@ -389,6 +389,9 @@ Except not because rando Fix HC Garden Song from Impa & Zelda's Letter require 'oot_childcucco_used', not 'oot_childcucco' + Fix Song from Malon + Requires 'oot_childegg' + Add in addition to 'oot_postzelda' along with 'oot_childcucco' ''' print(" > BUGFIX : ./[oot]/locations/overworld.json") with( @@ -425,6 +428,15 @@ location["access_rules"][0] = location["access_rules"][0].replace("cucco","cucco_used") locationsJSON[0]["children"][2]["children"][3]["children"][1]["children"][2] = location + # Fix Song from Malon + location = locationsJSON[0]["children"][2]["children"][0]["children"][11]["children"][0]["sections"][0] + # print(location["name"]) + location["access_rules"].append(location["access_rules"][0]) + location["access_rules"].append(location["access_rules"][0]) + location["access_rules"][0] = location["access_rules"][0].replace("postzelda","childegg") + location["access_rules"][1] = location["access_rules"][1].replace("postzelda","childcucco") + locationsJSON[0]["children"][2]["children"][0]["children"][11]["children"][0]["sections"][0] = location + jsonFile.seek(0) jsonFile.truncate(0) jsonFile.write(json.dumps(locationsJSON, indent=2))