Skip to content

Commit

Permalink
Merge pull request #355 from randovania/fixes-for-new-emds
Browse files Browse the repository at this point in the history
Support for new MEDS
  • Loading branch information
ThanatosGit authored May 22, 2024
2 parents fe8c42f + f7cebef commit 57a974d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
"mercury-engine-data-structures>=0.27.0",
"mercury-engine-data-structures>=0.30.0",
"jsonschema>=4.0.0",
"ips.py>=0.1.2",
]
Expand Down
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 57a974d

Please sign in to comment.