Module:Abilities: Difference between revisions

LVL (talk | contribs)
Added get_ability_upgrade_prop function to retrieve specific upgrade properties
LVL (talk | contribs)
Add check for isdisabled
Line 24: Line 24:
-- If not found by key, loop through and search by the "Name" property as a fallback
-- If not found by key, loop through and search by the "Name" property as a fallback
-- Skip any ability that is explicitly disabled
for _, v in pairs(raw_ability_data) do
for _, v in pairs(raw_ability_data) do
if (v["Name"] == identifier) then
if v.Name == identifier and not v.IsDisabled then
return v
return v
end
end