Files
coa-details/Details/classes/class_spellresources.lua
florian.berthold 5bb7be4968 chore: hoist plugins to root and move main into Details/
Each Details_* plugin and the main Details addon now lives in its own
repo-root folder, matching the Exiles fork-layout convention.
2026-05-25 10:59:28 +02:00

25 lines
573 B
Lua

local _detalhes = _G.Details
local _
local addonName, Details222 = ...
local habilidade_energy = _detalhes.habilidade_e_energy
function habilidade_energy:NovaTabela (id, link, token)
local newSpellTable = {
id = id,
counter = 0,
total = 0,
totalover = 0,
targets = {}
}
return newSpellTable
end
function habilidade_energy:Add(serial, nome, flag, amount, who_nome, powertype, overpower)
self.counter = self.counter + 1
self.total = self.total + amount
self.totalover = 0
self.targets[nome] = (self.targets[nome] or 0) + amount
end