PDA

View Full Version : Ruleset error? manager_char_weapon.lua



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 ;)

damned
December 15th, 2020, 22:02
Im an "R Type thank you very much!

Moon Wizard
December 15th, 2020, 22:27
This was already queued for fix, and pushed today.

JPG

celestian
December 15th, 2020, 23:39
This was already queued for fix, and pushed today.

JPG

I only noticed when I was seeing how 5e managed some of it's action builders ;)