Skip to content

Commit

Permalink
Add Gamma callback for airdeath
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Oct 12, 2023
1 parent 1042392 commit 3bd2793
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions open_samus_returns_rando/specific_patches/metroid_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ def patch_metroids(editor: PatcherEditor):
metroid_bmsad = editor.get_parsed_asset(metroid_file, type_hint=Bmsad)
action_set_anim = metroid_bmsad.action_sets[0].raw["animations"][death_index]
action_set_anim["events0"][function_index]["args"][601445949]["value"] = "RemoveMetroid"
if metroid_file in {
"actors/characters/gamma/charclasses/gamma.bmsad",
"actors/characters/gammaevolved/charclasses/gammaevolved.bmsad"
}:
metroid_bmsad.action_sets[0].raw["animations"][2]["events0"][function_index]["args"][601445949]["value"] = "RemoveMetroid"

drop_component = metroid_bmsad.raw["components"]["DROP"]
# weird case where some fields are defined two times
Expand Down

0 comments on commit 3bd2793

Please sign in to comment.