Skip to content

Commit

Permalink
Support for new MEDS
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed May 21, 2024
1 parent 8ad81fe commit 5ba694f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/open_samus_returns_rando/specific_patches/door_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"unk2": 1,
"unk3": 0,
"args": Container({
601445949: Container({ # type: ignore
"CallbackName": Container({
"type": "s",
"value": "RemoveDoors",
}),
Expand Down Expand Up @@ -562,7 +562,7 @@ def add_custom_shields(editor: PatcherEditor, new_shield: NewShield) -> None:
# Remove the drops from breaking the shield
custom_shield.raw["components"].pop("DROP")
# Remove the particle animation that occurs after the shield breaks (color mismatch)
custom_shield.raw["action_sets"][0]["animations"][0]["events0"][1]["args"][729149823]["value"] = 0
custom_shield.raw["action_sets"][0]["animations"][0]["events0"][1]["args"]["LinkType"]["value"] = 0
elif new_shield.base_shield in {"doorshieldsupermissile", "doorshieldpowerbomb"}:
# Some shaders do not use dissolve fx, so force fx to be used
custom_shield.raw["components"]["LIFE"]["fields"]["bDisolveByMaterial"]["value"] = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def _patch_metroids(editor: PatcherEditor) -> None:
death_callbacks = [
item
for events in events0
for magic_number, item in events["args"].items()
# arguments with this number defines the function to call
if magic_number == 601445949
for parameter_name, item in events["args"].items()
# check if this event defines a CallbackName
if parameter_name == "CallbackName"
]
for death_callback in death_callbacks:
death_callback["value"] = "RemoveMetroid"
Expand Down

0 comments on commit 5ba694f

Please sign in to comment.