Module:HeroData: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m spacing was moved in game for weapon stat infobox |
m get_ability_key from hero key and slot number initial |
||
| Line 91: | Line 91: | ||
return element | return element | ||
end | |||
p.get_ability_key = function(frame) | |||
local hero_key = frame.args[1] | |||
local bound_slot_number = frame.args[2] | |||
local hero_data = heroes_data[hero_key] | |||
if (hero_data == nil) then return "Hero key "..hero_key.. " not found" end | |||
local bound_abilities_data = hero_data["BoundAbilities"] | |||
if (bound_abilities_data == nil) then return "Hero key " .. hero_key.. " has no BoundAbilities" end | |||
return bound_abilities_data[tonumber(bound_slot_number)] | |||
end | end | ||