Skip to content

Commit

Permalink
Donald & Goofy weapon abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
1234567890num committed Jun 3, 2024
1 parent 63bec83 commit 4dca055
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions F266B00B GoA Reverse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,9 @@ if true then
Ability[0x226] = 0x3AEA --Precious Mushroom+
Ability[0x227] = 0x3AFA --Premium Mushroom
Ability[0x0A1] = 0x375A --Detection Staff
local ItemOffset = 0x18 --Offsets for new items added
if Ability[Staff] ~= nil then
Ability = ReadShort(BAR(Sys3,0x6,Ability[Staff]),OnPC) --Currently-equipped staff's ability
Ability = ReadShort(BAR(Sys3,0x6,Ability[Staff]+ItemOffset),OnPC) --Currently-equipped staff's ability
if Ability == 0x0A5 then --Donald Fire
WriteShort(Save+0x26F6,0x80A5)
WriteByte(BAR(Sys3,0x6,0x168F),0,OnPC)
Expand Down Expand Up @@ -778,8 +779,9 @@ if true then
Ability[0x22E] = 0x3B6A --Ultimate Mushroom
Ability[0x032] = 0x380A --Detection Shield
Ability[0x033] = 0x381A --Test the King
local ItemOffset = 0x18 --Offsets for new items added
if Ability[Shield] ~= nil then
Ability = ReadShort(BAR(Sys3,0x6,Ability[Shield]),OnPC) --Currently-equipped shield's ability
Ability = ReadShort(BAR(Sys3,0x6,Ability[Shield]+ItemOffset),OnPC) --Currently-equipped shield's ability
if Ability == 0x1A7 then --Goofy Tornado
WriteShort(Save+0x280A,0x81A7)
WriteByte(BAR(Sys3,0x6,0x16EF),0,OnPC)
Expand Down

0 comments on commit 4dca055

Please sign in to comment.