Skip to content

Commit

Permalink
Merge pull request #408 from randovania/bad-arachnus-fix
Browse files Browse the repository at this point in the history
Rotate Arachnus pickup to face the correct direction
  • Loading branch information
ThanatosGit authored Jul 11, 2024
2 parents 66d579d + e8da615 commit 29027f2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/open_samus_returns_rando/files/custom/arachnus.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Game.ImportLibrary("actors/characters/arachnus/scripts/arachnus_original.lc")
function Arachnus.main()
Game.AddSF(0.0, "Arachnus.RotatePickup", "")
end
function Arachnus.RotatePickup()
local springball = Game.GetEntity("LE_PowerUp_Springball")
if springball ~= nil then
if springball.vAng ~= V3D(0, 0 ,0) then
springball.vAng = V3D(0, 0, 0)
else
Game.AddSF(0.0, "Arachnus.RotatePickup", "")
end
end
end
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def _add_replacement_files(self, editor: PatcherEditor, configuration: dict) ->
scenario_lua_content += "\n" + self._progressive_models
lua_util.replace_script_with_content(editor, "system/scripts/scenario", scenario_lua_content)

lua_util.replace_script(editor, "actors/characters/arachnus/scripts/arachnus", "custom/arachnus.lua")
lua_util.replace_script(editor, "actors/props/samusship/scripts/samusship", "custom/ship.lua")
lua_util.replace_script(editor, "actors/props/savestation/scripts/savestation", "custom/savestation.lua")
lua_util.replace_script(editor, "actors/props/heatzone/scripts/heatzone", "custom/heatzone.lua")
Expand Down

0 comments on commit 29027f2

Please sign in to comment.