Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/lunalua-0.7.2.1' into lunalua-0.…
Browse files Browse the repository at this point in the history
…7.2.1
  • Loading branch information
KevinW1998 committed Oct 30, 2015
2 parents 4f07ce9 + d93597b commit 9da59c1
Show file tree
Hide file tree
Showing 41 changed files with 6,913 additions and 160 deletions.
16 changes: 14 additions & 2 deletions LuaScriptsLib/core/defines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ local defines = {
player_link_shieldEnabled = {defValue = true, minVal = nil, maxVal = nil, address = nil, size = FIELD_BOOLEAN,
n = 1, group = "Player Settings: Link", desc = "If the shield of link is enabled.",
customFuncGet = function()
return mem(0x00A53042, FIELD_BYTE) == 0x90
return mem(0x00A53042, FIELD_BYTE) ~= 0x90
end,
customFuncSet = function(value)
if(value)then
Expand All @@ -102,6 +102,18 @@ local defines = {
mem(0x00A53047, FIELD_BYTE, 0x90)
mem(0x00A53048, FIELD_BYTE, 0x90)
end
end},
player_link_fairyVineEnabled = {defValue = true, minVal = nil, maxVal = nil, address = nil, size = FIELD_BOOLEAN,
n = 2, group = "Player Settings: Link", desc = "If the vine fairy is enabled",
customFuncGet = function()
return mem(0x009AAF93, FIELD_BYTE) == 0x5
end,
customFuncSet = function(value)
if(value)then
mem(0x009AAF93, FIELD_BYTE, 0x5)
else
mem(0x009AAF93, FIELD_BYTE, 0xFF)
end
end}
}

Expand All @@ -123,7 +135,7 @@ end

local function getDefine(defTable)
if(defTable.customFuncGet)then
defTable.customFuncGet()
return defTable.customFuncGet()
else
return mem(defTable.address, defTable.size)
end
Expand Down
Loading

0 comments on commit 9da59c1

Please sign in to comment.