The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.

User:Skkias/sandbox/Module:Skill

From Path of Exile 2 Wiki
Jump to navigation Jump to search

local data = require('User:Skkias/sandbox/Module:SkillData') local p = {}

function p.showSkill(frame)

   local skillName = frame.args[1] or "Spark"
   local skill = data[skillName]
   if not skill then
       return "Skill not found."
   end
   local result = "Skill: " .. skill.name .. "\nDescription: " .. skill.description .. "\nLevels:\n"
   for _, level in ipairs(skill.levels) do
       result = result .. "Level " .. level.level .. ": " .. level.damage_min .. " to " .. level.damage_max .. " damage, Mana cost: " .. level.mana_cost .. "\n"
   end
   return result

end

return p