Skip to content

Commit

Permalink
Replace the script like the others
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Jul 10, 2024
1 parent 56b7640 commit e8da615
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 29 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

This file was deleted.

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 e8da615

Please sign in to comment.