-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
393 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/open_samus_returns_rando/files/custom/sprites_texturehud.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
src/open_samus_returns_rando/files/romfs/gui/textures/texturehud.bctex
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/open_samus_returns_rando/specific_patches/environmental_damage.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from open_samus_returns_rando.patcher_editor import PatcherEditor | ||
from open_samus_returns_rando.specific_patches.environmental_damage_sources import ALL_DAMAGE_ROOM_ACTORS | ||
|
||
|
||
def apply_constant_damage(editor: PatcherEditor, configuration: dict) -> None: | ||
for reference in ALL_DAMAGE_ROOM_ACTORS: | ||
actor = editor.resolve_actor_reference(reference) | ||
|
||
if actor["components"][1]["arguments"][26]["value"] == "HEAT": | ||
config_field = "heat" | ||
elif actor["components"][1]["arguments"][26]["value"] == "LAVA": | ||
config_field = "lava" | ||
else: | ||
raise ValueError(f"{reference} does not have a valid actorDef for environmental damage") | ||
|
||
if configuration[config_field] is None: | ||
continue | ||
|
||
# Uses the default time per tick of 0.5 | ||
damage = configuration[config_field] / 2 | ||
|
||
# Damage per tick | ||
actor["components"][1]["arguments"][19]["value"] = damage | ||
# Damage Scale | ||
actor["components"][1]["arguments"][28]["value"] = damage | ||
# Damage of first tick | ||
actor["components"][2]["arguments"][19]["value"] = damage |
Oops, something went wrong.