Module:Abilities: Difference between revisionsGive feedback
Added get_ability_upgrade_prop function to retrieve specific upgrade properties |
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 | if v.Name == identifier and not v.IsDisabled then | ||
return v | return v | ||
end | end | ||