Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Atlantica Trigger FIx
Browse files Browse the repository at this point in the history
  • Loading branch information
1234567890num committed Oct 21, 2021
1 parent d81a94a commit 2a6a1c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GoA RAM Non-Rando.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3623,12 +3623,18 @@ if ReadByte(Save+0x1CFF) == 13 then
if ReadShort(Save+0x10A0) == 0x16 and ReadByte(Save+0x1CF6) >= 1 then --Unlock 2nd Song
WriteShort(Save+0x1094,0x11) --Triton's Grotto EVT
WriteShort(Save+0x10A0,0x16) --Undersea Courtyard EVT
BitOr(Save+0x1DF4,0x40) --LM_GET_ITEM_2
BitOr(Save+0x1DF6,0x08) --LM_SCENARIO_2_OPEN
elseif ReadShort(Save+0x10A0) == 0x07 and ReadByte(Save+0x1CF6) >= 2 then --Unlock 4th Song
WriteShort(Save+0x1094,0x0F) --Triton's Grotto EVT
WriteShort(Save+0x10A0,0x14) --Undersea Courtyard EVT
BitOr(Save+0x1DF5,0x01) --LM_GET_ITEM_4
BitOr(Save+0x1DF7,0x02) --LM_SCENARIO_4_OPEN
elseif ReadShort(Save+0x10A0) == 0x0C and ReadByte(Save+0x1CF4) >= 3 then --Unlock 5th Song
WriteShort(Save+0x1094,0x0D) --Triton's Grotto EVT
WriteShort(Save+0x10A0,0x13) --Undersea Courtyard EVT
BitOr(Save+0x1DF5,0x20) --LM_GET_ITEM_5
BitOr(Save+0x1DF7,0x10) --LM_SCENARIO_5_OPEN
end
end
--End of Visits -> Garden of Assemblage
Expand Down
6 changes: 6 additions & 0 deletions GoA RAM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3676,12 +3676,18 @@ if ReadByte(Save+0x1CFF) == 13 then
if ReadShort(Save+0x10A0) == 0x16 and ReadByte(Save+0x1CF6) >= 1 then --Unlock 2nd Song
WriteShort(Save+0x1094,0x11) --Triton's Grotto EVT
WriteShort(Save+0x10A0,0x16) --Undersea Courtyard EVT
BitOr(Save+0x1DF4,0x40) --LM_GET_ITEM_2
BitOr(Save+0x1DF6,0x08) --LM_SCENARIO_2_OPEN
elseif ReadShort(Save+0x10A0) == 0x07 and ReadByte(Save+0x1CF6) >= 2 then --Unlock 4th Song
WriteShort(Save+0x1094,0x0F) --Triton's Grotto EVT
WriteShort(Save+0x10A0,0x14) --Undersea Courtyard EVT
BitOr(Save+0x1DF5,0x01) --LM_GET_ITEM_4
BitOr(Save+0x1DF7,0x02) --LM_SCENARIO_4_OPEN
elseif ReadShort(Save+0x10A0) == 0x0C and ReadByte(Save+0x1CF4) >= 3 then --Unlock 5th Song
WriteShort(Save+0x1094,0x0D) --Triton's Grotto EVT
WriteShort(Save+0x10A0,0x13) --Undersea Courtyard EVT
BitOr(Save+0x1DF5,0x20) --LM_GET_ITEM_5
BitOr(Save+0x1DF7,0x10) --LM_SCENARIO_5_OPEN
end
end
--End of Visits -> Garden of Assemblage
Expand Down

0 comments on commit 2a6a1c6

Please sign in to comment.