celestian
December 15th, 2020, 20:14
I believe this is wrong.
--
-- Property helpers
--
function getRange(nodeChar, nodeWeapon)
local nType = DB.getValue(nodeChar, "type", 0);
if (nType == 1) or (nType == 2) then
return "R";
end
return "M";
end
Should that not be
local nType = DB.getValue(nodeWeapon, "type", 0); ?
Far as I know nodeChars don't have a type ;)
--
-- Property helpers
--
function getRange(nodeChar, nodeWeapon)
local nType = DB.getValue(nodeChar, "type", 0);
if (nType == 1) or (nType == 2) then
return "R";
end
return "M";
end
Should that not be
local nType = DB.getValue(nodeWeapon, "type", 0); ?
Far as I know nodeChars don't have a type ;)