Disabled Bindings.xml to avoid taints in 10.0
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
local _table_sort = table.sort --lua local
|
||||
local tinsert = table.insert --lua local
|
||||
local _table_size = table.getn --lua local
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local _getmetatable = getmetatable --lua local
|
||||
local ipairs = ipairs --lua local
|
||||
local pairs = pairs --lua local
|
||||
local _rawget= rawget --lua local
|
||||
local rawget= rawget --lua local
|
||||
local _math_min = math.min --lua local
|
||||
local _math_max = math.max --lua local
|
||||
local abs = math.abs --lua local
|
||||
@@ -440,7 +440,7 @@ end
|
||||
spells = container_habilidades:NovoContainer (container_damage)
|
||||
}
|
||||
|
||||
_setmetatable(_new_damageActor, atributo_damage)
|
||||
setmetatable(_new_damageActor, atributo_damage)
|
||||
|
||||
return _new_damageActor
|
||||
end
|
||||
@@ -950,7 +950,7 @@ end
|
||||
thisLine.colocacao = colocacao
|
||||
|
||||
if (not _getmetatable (tabela)) then
|
||||
_setmetatable(tabela, {__call = RefreshBarraBySpell})
|
||||
setmetatable(tabela, {__call = RefreshBarraBySpell})
|
||||
tabela._custom = true
|
||||
end
|
||||
|
||||
@@ -1141,7 +1141,7 @@ end
|
||||
thisLine.colocacao = colocacao
|
||||
|
||||
if (not _getmetatable (tabela)) then
|
||||
_setmetatable(tabela, {__call = RefreshBarraFrags})
|
||||
setmetatable(tabela, {__call = RefreshBarraFrags})
|
||||
tabela._custom = true
|
||||
end
|
||||
|
||||
@@ -5875,7 +5875,7 @@ end
|
||||
|
||||
function Details.refresh:r_atributo_damage (este_jogador, shadow)
|
||||
--restaura metas do ator
|
||||
_setmetatable(este_jogador, Details.atributo_damage)
|
||||
setmetatable(este_jogador, Details.atributo_damage)
|
||||
este_jogador.__index = Details.atributo_damage
|
||||
--restaura as metas dos containers
|
||||
Details.refresh:r_container_habilidades (este_jogador.spells, shadow and shadow.spells)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
--lua locals
|
||||
local _cstr = string.format
|
||||
local _math_floor = math.floor
|
||||
local _setmetatable = setmetatable
|
||||
local setmetatable = setmetatable
|
||||
local pairs = pairs
|
||||
local ipairs = ipairs
|
||||
local _unpack = unpack
|
||||
@@ -112,7 +112,7 @@ function atributo_heal:NovaTabela (serial, nome, link)
|
||||
targets_absorbs = {}
|
||||
}
|
||||
|
||||
_setmetatable(_new_healActor, atributo_heal)
|
||||
setmetatable(_new_healActor, atributo_heal)
|
||||
|
||||
return _new_healActor
|
||||
end
|
||||
@@ -2915,7 +2915,7 @@ atributo_heal.__sub = function(tabela1, tabela2)
|
||||
end
|
||||
|
||||
function _detalhes.refresh:r_atributo_heal (este_jogador, shadow)
|
||||
_setmetatable(este_jogador, atributo_heal)
|
||||
setmetatable(este_jogador, atributo_heal)
|
||||
este_jogador.__index = atributo_heal
|
||||
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.spells, shadow and shadow.spells)
|
||||
|
||||
@@ -9,7 +9,7 @@ local _math_floor = math.floor --lua local
|
||||
local abs = math.abs --lua local
|
||||
local _table_remove = table.remove --lua local
|
||||
local _getmetatable = getmetatable --lua local
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local _string_len = string.len --lua local
|
||||
local _unpack = unpack --lua local
|
||||
local _cstr = string.format --lua local
|
||||
@@ -49,7 +49,7 @@ local segmentos = _detalhes.segmentos
|
||||
for index = 1, #_detalhes.tabela_instancias do
|
||||
local instancia = _detalhes.tabela_instancias [index]
|
||||
if (not _getmetatable (instancia)) then
|
||||
_setmetatable(_detalhes.tabela_instancias[index], _detalhes)
|
||||
setmetatable(_detalhes.tabela_instancias[index], _detalhes)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1353,7 +1353,7 @@ end
|
||||
LastModo = modo_grupo,
|
||||
}
|
||||
|
||||
_setmetatable(new_instance, _detalhes)
|
||||
setmetatable(new_instance, _detalhes)
|
||||
_detalhes.tabela_instancias [#_detalhes.tabela_instancias+1] = new_instance
|
||||
|
||||
--fill the empty instance with default values
|
||||
@@ -1375,7 +1375,7 @@ end
|
||||
function _detalhes:NovaInstancia (ID)
|
||||
|
||||
local new_instance = {}
|
||||
_setmetatable(new_instance, _detalhes)
|
||||
setmetatable(new_instance, _detalhes)
|
||||
_detalhes.tabela_instancias [#_detalhes.tabela_instancias+1] = new_instance
|
||||
|
||||
--instance number
|
||||
@@ -3012,7 +3012,7 @@ function _detalhes:FormatReportLines (report_table, data, f1, f2, f3)
|
||||
fontSize = 10
|
||||
end
|
||||
local fonte, _, flags = _detalhes.fontstring_len:GetFont()
|
||||
_detalhes.fontstring_len:SetFont (fonte, fontSize, flags)
|
||||
_detalhes.fontstring_len:SetFont(fonte, fontSize, flags)
|
||||
_detalhes.fontstring_len:SetText("DEFAULT NAME")
|
||||
local biggest_len = _detalhes.fontstring_len:GetStringWidth()
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ local _cstr = string.format
|
||||
local _math_floor = math.floor
|
||||
local _table_sort = table.sort
|
||||
local tinsert = table.insert
|
||||
local _setmetatable = setmetatable
|
||||
local setmetatable = setmetatable
|
||||
local ipairs = ipairs
|
||||
local pairs = pairs
|
||||
local _rawget= rawget
|
||||
local rawget= rawget
|
||||
local _math_min = math.min
|
||||
local _math_max = math.max
|
||||
local _bit_band = bit.band
|
||||
@@ -87,7 +87,7 @@ function atributo_energy:NovaTabela (serial, nome, link)
|
||||
spells = container_habilidades:NovoContainer (container_energy),
|
||||
}
|
||||
|
||||
_setmetatable(_new_energyActor, atributo_energy)
|
||||
setmetatable(_new_energyActor, atributo_energy)
|
||||
|
||||
return _new_energyActor
|
||||
end
|
||||
@@ -1523,7 +1523,7 @@ function atributo_energy:ColetarLixo (lastevent)
|
||||
end
|
||||
|
||||
function _detalhes.refresh:r_atributo_energy (este_jogador, shadow)
|
||||
_setmetatable(este_jogador, _detalhes.atributo_energy)
|
||||
setmetatable(este_jogador, _detalhes.atributo_energy)
|
||||
este_jogador.__index = _detalhes.atributo_energy
|
||||
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.spells, shadow and shadow.spells)
|
||||
|
||||
@@ -1,32 +1,23 @@
|
||||
-- damage ability file
|
||||
|
||||
local _detalhes = _G._detalhes
|
||||
local _
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--local pointers
|
||||
local ipairs = ipairs--lua local
|
||||
local pairs = pairs--lua local
|
||||
local _UnitAura = UnitAura--api local
|
||||
local ipairs = ipairs
|
||||
local pairs = pairs
|
||||
local _UnitAura = UnitAura
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--constants
|
||||
|
||||
local alvo_da_habilidade = _detalhes.alvo_da_habilidade
|
||||
local habilidade_dano = _detalhes.habilidade_dano
|
||||
local container_combatentes = _detalhes.container_combatentes
|
||||
local container_damage_target = _detalhes.container_type.CONTAINER_DAMAGETARGET_CLASS
|
||||
local container_playernpc = _detalhes.container_type.CONTAINER_PLAYERNPC
|
||||
|
||||
local _recording_ability_with_buffs = false
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--internals
|
||||
|
||||
function habilidade_dano:NovaTabela (id, link, token)
|
||||
|
||||
function habilidade_dano:NovaTabela(id, link, token)
|
||||
local _newDamageSpell = {
|
||||
|
||||
total = 0, --total damage
|
||||
counter = 0, --counter
|
||||
id = id, --spellid
|
||||
@@ -37,7 +28,7 @@
|
||||
n_max = 0,
|
||||
n_amt = 0,
|
||||
n_dmg = 0,
|
||||
|
||||
|
||||
--critical hits
|
||||
c_min = 0,
|
||||
c_max = 0,
|
||||
@@ -47,11 +38,11 @@
|
||||
--glacing hits
|
||||
g_amt = 0,
|
||||
g_dmg = 0,
|
||||
|
||||
|
||||
--resisted
|
||||
r_amt = 0,
|
||||
r_dmg = 0,
|
||||
|
||||
|
||||
--blocked
|
||||
b_amt = 0,
|
||||
b_dmg = 0,
|
||||
@@ -59,29 +50,29 @@
|
||||
--obsorved
|
||||
a_amt = 0,
|
||||
a_dmg = 0,
|
||||
|
||||
|
||||
targets = {},
|
||||
extra = {}
|
||||
}
|
||||
|
||||
|
||||
if (token == "SPELL_PERIODIC_DAMAGE") then
|
||||
_detalhes:SpellIsDot (id)
|
||||
end
|
||||
|
||||
|
||||
return _newDamageSpell
|
||||
end
|
||||
|
||||
function habilidade_dano:AddMiss (serial, nome, flags, who_nome, missType)
|
||||
self.counter = self.counter + 1
|
||||
self [missType] = (self [missType] or 0) + 1
|
||||
|
||||
|
||||
self.targets [nome] = self.targets [nome] or 0
|
||||
end
|
||||
|
||||
function habilidade_dano:Add (serial, nome, flag, amount, who_nome, resisted, blocked, absorbed, critical, glacing, token, isoffhand, isreflected)
|
||||
|
||||
self.total = self.total + amount
|
||||
|
||||
|
||||
--if is reflected add the spellId into the extra table
|
||||
--this is too show which spells has been reflected
|
||||
if (isreflected) then
|
||||
@@ -89,24 +80,24 @@
|
||||
end
|
||||
|
||||
self.targets [nome] = (self.targets [nome] or 0) + amount
|
||||
|
||||
|
||||
self.counter = self.counter + 1
|
||||
|
||||
|
||||
if (resisted and resisted > 0) then
|
||||
self.r_dmg = self.r_dmg+amount --tabela.total � o total de dano
|
||||
self.r_amt = self.r_amt+1 --tabela.total � o total de dano
|
||||
end
|
||||
|
||||
|
||||
if (blocked and blocked > 0) then
|
||||
self.b_dmg = self.b_dmg+amount --amount � o total de dano
|
||||
self.b_amt = self.b_amt+1 --amount � o total de dano
|
||||
end
|
||||
|
||||
|
||||
if (absorbed and absorbed > 0) then
|
||||
self.a_dmg = self.a_dmg+amount --amount � o total de dano
|
||||
self.a_amt = self.a_amt+1 --amount � o total de dano
|
||||
end
|
||||
|
||||
|
||||
if (glacing) then
|
||||
self.g_dmg = self.g_dmg+amount --amount � o total de dano
|
||||
self.g_amt = self.g_amt+1 --amount � o total de dano
|
||||
@@ -120,7 +111,7 @@
|
||||
if (self.c_min > amount or self.c_min == 0) then
|
||||
self.c_min = amount
|
||||
end
|
||||
|
||||
|
||||
else
|
||||
self.n_dmg = self.n_dmg+amount
|
||||
self.n_amt = self.n_amt+1
|
||||
@@ -132,18 +123,18 @@
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
if (_recording_ability_with_buffs) then
|
||||
if (who_nome == _detalhes.playername) then --aqui ele vai detalhar tudo sobre a magia usada
|
||||
|
||||
|
||||
local buffsNames = _detalhes.SoloTables.BuffsTableNameCache
|
||||
|
||||
|
||||
local SpellBuffDetails = self.BuffTable
|
||||
if (not SpellBuffDetails) then
|
||||
self.BuffTable = {}
|
||||
SpellBuffDetails = self.BuffTable
|
||||
end
|
||||
|
||||
|
||||
if (token == "SPELL_PERIODIC_DAMAGE") then
|
||||
--precisa ver se ele tinha na hora que aplicou
|
||||
local SoloDebuffPower = _detalhes.tabela_vigente.SoloDebuffPower
|
||||
@@ -165,7 +156,7 @@
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
else
|
||||
|
||||
for BuffName, _ in pairs(_detalhes.Buffs.BuffsTable) do
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--local pointers
|
||||
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local ipairs = ipairs --lua local
|
||||
local _UnitAura = UnitAura --api local
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--local pointers
|
||||
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local ipairs = ipairs --lua local
|
||||
local _UnitAura = UnitAura --api local
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ local tinsert = table.insert
|
||||
local _table_size = table.getn
|
||||
local ipairs = ipairs
|
||||
local pairs = pairs
|
||||
local _rawget= rawget
|
||||
local rawget= rawget
|
||||
local min = math.min
|
||||
local _math_max = math.max
|
||||
local abs = math.abs
|
||||
@@ -434,7 +434,7 @@ function atributo_misc:ReportSingleDeadLine (morte, instancia)
|
||||
fontSize = 10
|
||||
end
|
||||
local fonte, _, flags = _detalhes.fontstring_len:GetFont()
|
||||
_detalhes.fontstring_len:SetFont (fonte, fontSize, flags)
|
||||
_detalhes.fontstring_len:SetFont(fonte, fontSize, flags)
|
||||
_detalhes.fontstring_len:SetText("thisisspacement")
|
||||
end
|
||||
local default_len = _detalhes.fontstring_len:GetStringWidth()
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
local UnitGUID = UnitGUID --api local
|
||||
local strsplit = strsplit --api local
|
||||
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local _getmetatable = getmetatable --lua local
|
||||
local _bit_band = bit.band --lua local
|
||||
local _table_sort = table.sort --lua local
|
||||
@@ -160,7 +160,7 @@
|
||||
_NameIndexTable = {}
|
||||
}
|
||||
|
||||
_setmetatable(_newContainer, container_combatentes)
|
||||
setmetatable(_newContainer, container_combatentes)
|
||||
|
||||
return _newContainer
|
||||
end
|
||||
@@ -876,7 +876,7 @@
|
||||
|
||||
function _detalhes.refresh:r_container_combatentes (container, shadow)
|
||||
--reconstr�i meta e indexes
|
||||
_setmetatable(container, _detalhes.container_combatentes)
|
||||
setmetatable(container, _detalhes.container_combatentes)
|
||||
container.__index = _detalhes.container_combatentes
|
||||
container.funcao_de_criacao = container_combatentes:FuncaoDeCriacao (container.tipo)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ local IsInGroup = _G.IsInGroup
|
||||
local GetNumGroupMembers = _G.GetNumGroupMembers
|
||||
|
||||
-- lua locals
|
||||
local _setmetatable = setmetatable
|
||||
local setmetatable = setmetatable
|
||||
local _bit_band = bit.band --lua local
|
||||
local pairs = pairs
|
||||
local ipairs = ipairs
|
||||
@@ -22,7 +22,7 @@ local is_ignored = _detalhes.pets_ignored
|
||||
|
||||
function container_pets:NovoContainer()
|
||||
local esta_tabela = {}
|
||||
_setmetatable(esta_tabela, _detalhes.container_pets)
|
||||
setmetatable(esta_tabela, _detalhes.container_pets)
|
||||
esta_tabela.pets = {} --armazena a pool -> uma dictionary com o [serial do pet] -> nome do dono
|
||||
esta_tabela._ActorTable = {} --armazena os 15 ultimos pets do jogador -> [jogador nome] -> {nil, nil, nil, ...}
|
||||
return esta_tabela
|
||||
@@ -256,6 +256,6 @@ function _detalhes:SchedulePetUpdate(seconds)
|
||||
end
|
||||
|
||||
function _detalhes.refresh:r_container_pets (container)
|
||||
_setmetatable(container, container_pets)
|
||||
setmetatable(container, container_pets)
|
||||
end
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ local _
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--local pointers
|
||||
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--constants
|
||||
@@ -39,7 +39,7 @@ local _
|
||||
_ActorTable = {}
|
||||
}
|
||||
|
||||
_setmetatable(_newContainer, container_habilidades)
|
||||
setmetatable(_newContainer, container_habilidades)
|
||||
|
||||
return _newContainer
|
||||
end
|
||||
@@ -101,7 +101,7 @@ local _
|
||||
|
||||
function _detalhes.refresh:r_container_habilidades (container, shadow)
|
||||
--reconstr�i meta e indexes
|
||||
_setmetatable(container, _detalhes.container_habilidades)
|
||||
setmetatable(container, _detalhes.container_habilidades)
|
||||
container.__index = _detalhes.container_habilidades
|
||||
local func_criacao = container_habilidades:FuncaoDeCriacao (container.tipo)
|
||||
container.funcao_de_criacao = func_criacao
|
||||
|
||||
@@ -21,10 +21,10 @@ local _math_floor = math.floor --lua local
|
||||
local _table_sort = table.sort --lua local
|
||||
local tinsert = table.insert --lua local
|
||||
local _table_size = table.getn --lua local
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local ipairs = ipairs --lua local
|
||||
local pairs = pairs --lua local
|
||||
local _rawget= rawget --lua local
|
||||
local rawget= rawget --lua local
|
||||
local _math_min = math.min --lua local
|
||||
local _math_max = math.max --lua local
|
||||
local _bit_band = bit.band --lua local
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
local _table_sort = table.sort --lua local
|
||||
local tinsert = table.insert --lua local
|
||||
local _table_size = table.getn --lua local
|
||||
local _setmetatable = setmetatable --lua local
|
||||
local setmetatable = setmetatable --lua local
|
||||
local ipairs = ipairs --lua local
|
||||
local pairs = pairs --lua local
|
||||
local _rawget= rawget --lua local
|
||||
local rawget= rawget --lua local
|
||||
local _math_min = math.min --lua local
|
||||
local _math_max = math.max --lua local
|
||||
local _bit_band = bit.band --lua local
|
||||
|
||||
Reference in New Issue
Block a user