Module:Abilities: Difference between revisionsGive feedback
m Optimised search by ability name |
m Fixed key lookup |
||
| Line 26: | Line 26: | ||
-- If not found by key, search for key by ability name | -- If not found by key, search for key by ability name | ||
local resource_lookup = mw.loadJsonData("Data:ResourceLookup.json") | local resource_lookup = mw.loadJsonData("Data:ResourceLookup.json") | ||
local ability_resource = resource_lookup[identifier] | local ability_resource = resource_lookup[identifier:lower()] | ||
if (ability_resource) then | if (ability_resource) then | ||