updates
This commit is contained in:
@@ -118,6 +118,20 @@ end
|
||||
t.n = 1
|
||||
return t
|
||||
end
|
||||
|
||||
--[[exported]] function _detalhes:CreateActorAvoidanceTable (no_overall)
|
||||
if (no_overall) then
|
||||
local t = {["ALL"] = 0, ["DODGE"] = 0, ["PARRY"] = 0, ["HITS"] = 0, ["ABSORB"] = 0, --quantas vezes foi dodge, parry, quandos hits tomou, quantos absorbs teve
|
||||
["FULL_HIT"] = 0, ["FULL_ABSORBED"] = 0, ["PARTIAL_ABSORBED"] = 0, --full hit full absorbed and partial absortion
|
||||
["FULL_HIT_AMT"] = 0, ["PARTIAL_ABSORB_AMT"] = 0, ["ABSORB_AMT"] = 0, ["FULL_ABSORB_AMT"] = 0} --amounts
|
||||
return t
|
||||
else
|
||||
local t = {overall = {["ALL"] = 0, ["DODGE"] = 0, ["PARRY"] = 0, ["HITS"] = 0, ["ABSORB"] = 0, --quantas vezes foi dodge, parry, quandos hits tomou, quantos absorbs teve
|
||||
["FULL_HIT"] = 0, ["FULL_ABSORBED"] = 0, ["PARTIAL_ABSORBED"] = 0, --full hit full absorbed and partial absortion
|
||||
["FULL_HIT_AMT"] = 0, ["PARTIAL_ABSORB_AMT"] = 0, ["ABSORB_AMT"] = 0, ["FULL_ABSORB_AMT"] = 0}} --amounts
|
||||
return t
|
||||
end
|
||||
end
|
||||
|
||||
--[[exported]] function _detalhes.SortGroup (container, keyName2)
|
||||
keyName = keyName2
|
||||
|
||||
@@ -946,8 +946,9 @@ end
|
||||
function _detalhes:SetBackgroundAlpha (alpha)
|
||||
if (not alpha) then
|
||||
alpha = self.bg_alpha
|
||||
else
|
||||
alpha = _detalhes:Scale (0, 1, 0.2, 1, alpha) - 0.8
|
||||
-- else
|
||||
-- print (alpha)
|
||||
-- alpha = _detalhes:Scale (0, 1, 0.2, 1, alpha) - 0.8
|
||||
end
|
||||
|
||||
self.bgdisplay:SetBackdropColor (self.bg_r or _detalhes.default_bg_color, self.bg_g or _detalhes.default_bg_color, self.bg_b or _detalhes.default_bg_color, alpha)
|
||||
@@ -1096,6 +1097,7 @@ end
|
||||
function _detalhes:TrocaTabela (instancia, segmento, atributo, sub_atributo, iniciando_instancia, InstanceMode)
|
||||
|
||||
if (self and self.meu_id and not instancia) then --> self é uma instância
|
||||
InstanceMode = iniciando_instancia
|
||||
iniciando_instancia = sub_atributo
|
||||
sub_atributo = atributo
|
||||
atributo = segmento
|
||||
@@ -2026,6 +2028,10 @@ function _detalhes:envia_relatorio (linhas, custom)
|
||||
editbox:ClearFocus()
|
||||
end
|
||||
|
||||
if (_detalhes.report_where == "COPY") then
|
||||
return _detalhes:SendReportTextWindow (linhas)
|
||||
end
|
||||
|
||||
local to_who = _detalhes.report_where
|
||||
local channel = to_who:find ("|")
|
||||
|
||||
|
||||
@@ -143,12 +143,17 @@ local read_flag_ = function (novo_objeto, shadow_objeto, dono_do_pet, serial, fl
|
||||
if (_bit_band (flag, EM_GRUPO) ~= 0 and novo_objeto.classe ~= "UNGROUPPLAYER") then --> faz parte do grupo
|
||||
details_flag = details_flag+0x00000100
|
||||
novo_objeto.grupo = true
|
||||
--if (nome:find ("[*]")) then
|
||||
-- print ("Objeto em grupo:", nome, "flag:", flag, "classe:", novo_objeto.classe)
|
||||
--end
|
||||
|
||||
if (shadow_objeto) then
|
||||
shadow_objeto.grupo = true
|
||||
end
|
||||
|
||||
if (_detalhes:IsATank (serial)) then
|
||||
novo_objeto.isTank = true
|
||||
if (shadow_objeto) then
|
||||
shadow_objeto.isTank = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
elseif (dono_do_pet) then --> é um pet
|
||||
@@ -283,8 +288,8 @@ function container_combatentes:PegarCombatente (serial, nome, flag, criar, isOwn
|
||||
end
|
||||
end
|
||||
|
||||
if (novo_objeto.grupo) then
|
||||
novo_objeto.avoidance = {["DODGE"] = 0, ["PARRY"] = 0, ["HITS"] = 0} --> avoidance
|
||||
if (novo_objeto.isTank) then
|
||||
novo_objeto.avoidance = _detalhes:CreateActorAvoidanceTable()
|
||||
end
|
||||
|
||||
elseif (self.tipo == container_heal) then --> CONTAINER HEALING
|
||||
|
||||
Reference in New Issue
Block a user