Skip to content

Commit

Permalink
Fix Song from Malon
Browse files Browse the repository at this point in the history
Works on #1
  • Loading branch information
miketrethewey committed Mar 29, 2023
1 parent dff6186 commit 1350a30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions resources/ci/common/reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 1350a30

Please sign in to comment.