- Fixed the enemy name on segment menu.
- Added stoneform on cooldown list. - New API: _detalhes.GetSpellInfo (spell) return spell information from cache. - New API: _detalhes:GetSpellSchoolName (school number) return the school name. - New API: _detalhes:GetSpellSchoolFormatedName (school number) return school name with school color.
This commit is contained in:
+7
-5
@@ -417,14 +417,16 @@
|
||||
_detalhes.tabela_vigente.is_trash = true
|
||||
end
|
||||
|
||||
if (inimigo) then
|
||||
if (_detalhes.debug) then
|
||||
_detalhes:Msg ("(debug) enemy recognized", inimigo)
|
||||
if (not _detalhes.tabela_vigente.enemy) then
|
||||
local enemy = _detalhes:FindEnemy()
|
||||
|
||||
if (enemy and _detalhes.debug) then
|
||||
_detalhes:Msg ("(debug) enemy found", enemy)
|
||||
end
|
||||
|
||||
_detalhes.tabela_vigente.enemy = enemy
|
||||
end
|
||||
|
||||
_detalhes.tabela_vigente.enemy = inimigo
|
||||
|
||||
if (_detalhes.debug) then
|
||||
_detalhes:Msg ("(debug) forcing equalize actors behavior.")
|
||||
_detalhes:EqualizeActorsSchedule (_detalhes.host_of)
|
||||
|
||||
@@ -171,6 +171,7 @@ do
|
||||
|
||||
--> overwrite for API GetSpellInfo function
|
||||
_detalhes.getspellinfo = function (spellid) return _unpack (_detalhes.spellcache[spellid]) end
|
||||
_detalhes.GetSpellInfo = _detalhes.getspellinfo
|
||||
|
||||
--> overwrite SpellInfo if spell is a Dot, so GetSpellInfo will return the name modified
|
||||
function _detalhes:SpellIsDot (spellid)
|
||||
|
||||
@@ -960,6 +960,8 @@ do
|
||||
|
||||
_detalhes.DefensiveCooldownSpellsNoBuff = {
|
||||
|
||||
[20594] = {120, 8, 1}, --racial stoneform
|
||||
|
||||
[6262] = {120, 1, 1}, --healthstone
|
||||
|
||||
--["DEATHKNIGHT"] = {},
|
||||
@@ -1965,4 +1967,46 @@ do
|
||||
return _detalhes.DefensiveCooldownSpellsNoBuff [spellid] or _detalhes.DefensiveCooldownSpells [spellid]
|
||||
end
|
||||
|
||||
_detalhes.spells_school = {
|
||||
[1] = {name = "Physical", formated = "|cFFFFFF00Physical|r", hex = "FFFFFF00", rgb = {255, 255, 0}, decimals = {1.00, 1.00, 0.00}},
|
||||
[2] = {name = "Holy", formated = "|cFFFFE680Holy|r", hex = "FFFFE680", rgb = {255, 230, 128}, decimals = {1.00, 0.90, 0.50}},
|
||||
[4] = {name = "Fire", formated = "|cFFFF8000Fire|r", hex = "FFFF8000", rgb = {255, 128, 0}, decimals = {1.00, 0.50, 0.00}},
|
||||
[8] = {name = "Nature", formated = "|cFF4DFF4DNature|r", hex = "FF4DFF4D", rgb = {77, 255, 77}, decimals = {0.30, 1.00, 0.30}},
|
||||
[16] = {name = "Frost", formated = "|cFF80FFFFFrost|r", hex = "FF80FFFF", rgb = {128, 255, 255}, decimals = {0.50, 1.00, 1.00}},
|
||||
[32] = {name = "Shadow", formated = "|cFF8080FFShadow|r", hex = "FF8080FF", rgb = {128, 128, 255}, decimals = {0.50, 0.50, 1.00}},
|
||||
[64] = {name = "Arcane", formated = "|cFFFF80FFArcane|r", hex = "FFFF80FF", rgb = {255, 128, 255}, decimals = {1.00, 0.50, 1.00}},
|
||||
[3] = {name = "Holystrike", formated = "|cFFFFE680Holy|r + |cFFFFFF00Physical|r"},
|
||||
[5] = {name = "Flamestrike", formated = "|cFFFF8000Fire|r + |cFFFFFF00Physical|r"},
|
||||
[6] = {name = "Holyfire", formated = "|cFFFF8000Fire|r + |cFFFFE680Holy|r"},
|
||||
[9] = {name = "Stormstrike", formated = "|cFF4DFF4DNature|r + |cFFFFFF00Physical|r"},
|
||||
[10] = {name = "Holystorm", formated = "|cFF4DFF4DNature|r + |cFFFFE680Holy|r"},
|
||||
[12] = {name = "Firestorm", formated = "|cFF4DFF4DNature|r + |cFFFF8000Fire|r"},
|
||||
[17] = {name = "Froststrike", formated = "|cFF80FFFFFrost|r + |cFFFFFF00Physical|r"},
|
||||
[18] = {name = "Holyfrost", formated = "|cFF80FFFFFrost|r + |cFFFFE680Holy|r"},
|
||||
[20] = {name = "Frostfire", formated = "|cFF80FFFFFrost|r + |cFFFF8000Fire|r"},
|
||||
[24] = {name = "Froststorm", formated = "|cFF80FFFFFrost|r + |cFF4DFF4DNature|r"},
|
||||
[33] = {name = "Shadowstrike", formated = "|cFF8080FFShadow|r + |cFFFFFF00Physical|r"},
|
||||
[34] = {name = "Shadowlight (Twilight)", formated = "|cFF8080FFShadow|r + |cFFFFE680Holy|r"},
|
||||
[36] = {name = "Shadowflame", formated = "|cFF8080FFShadow|r + |cFFFF8000Fire|r"},
|
||||
[40] = {name = "Shadowstorm (Plague)", formated = "|cFF8080FFShadow|r + |cFF4DFF4DNature|r"},
|
||||
[48] = {name = "Shadowfrost", formated = "|cFF8080FFShadow|r + |cFF80FFFFFrost|r"},
|
||||
[65] = {name = "Spellstrike", formated = "|cFFFF80FFArcane|r + |cFFFFFF00Physical|r"},
|
||||
[66] = {name = "Divine", formated = "|cFFFF80FFArcane|r + |cFFFFE680Holy|r"},
|
||||
[68] = {name = "Spellfire", formated = "|cFFFF80FFArcane|r + |cFFFF8000Fire|r"},
|
||||
[72] = {name = "Spellstorm", formated = "|cFFFF80FFArcane|r + |cFF4DFF4DNature|r"},
|
||||
[80] = {name = "Spellfrost", formated = "|cFFFF80FFArcane|r + |cFF80FFFFFrost|r"},
|
||||
[96] = {name = "Spellshadow", formated = "|cFFFF80FFArcane|r + |cFF8080FFShadow|r"},
|
||||
[28] = {name = "Elemental", formated = "|cFF80FFFFFrost|r + |cFF4DFF4DNature|r + |cFFFF8000Fire|r"},
|
||||
[124] = {name = "Chromatic", formated = "|cFFFF80FFArcane|r + |cFF8080FFShadow|r + |cFF80FFFFFrost|r + |cFF4DFF4DNature|r + |cFFFF8000Fire|r"},
|
||||
[126] = {name = "Magic", formated = "|cFFFF80FFArcane|r + |cFF8080FFShadow|r + |cFF80FFFFFrost|r + |cFF4DFF4DNature|r + |cFFFF8000Fire|r + |cFFFFE680Holy|r"},
|
||||
[127] = {name = "Chaos", formated = "|cFFFF80FFArcane|r + |cFF8080FFShadow|r + |cFF80FFFFFrost|r + |cFF4DFF4DNature|r + |cFFFF8000Fire|r + |cFFFFE680Holy|r + |cFFFFFF00Physical|r"},
|
||||
}
|
||||
|
||||
function _detalhes:GetSpellSchoolName (school)
|
||||
return _detalhes.spells_school [school] and _detalhes.spells_school [school].name or ""
|
||||
end
|
||||
function _detalhes:GetSpellSchoolFormatedName (school)
|
||||
return _detalhes.spells_school [school] and _detalhes.spells_school [school].formated or ""
|
||||
end
|
||||
|
||||
end
|
||||
@@ -209,7 +209,7 @@ function _detalhes:OpenWelcomeWindow ()
|
||||
Loc ["STRING_WELCOME_12"] = "In this page you can choose the update speed desired and also enable animations."
|
||||
Loc ["STRING_WELCOME_13"] = ""
|
||||
Loc ["STRING_WELCOME_14"] = "Update Speed"
|
||||
Loc ["STRING_WELCOME_15"] = "This is the delay length between each update in the window,\nthe standard value is 1 second,\nbut you may decrease to 0.3 for more dinamyc updates."
|
||||
Loc ["STRING_WELCOME_15"] = "This is the delay length between each update in the window,\nthe standard value is 1 second,\nbut you may decrease to 0.3 for more dynamic updates."
|
||||
Loc ["STRING_WELCOME_16"] = "Enable Animations"
|
||||
Loc ["STRING_WELCOME_17"] = "Enable or Disable bar animations."
|
||||
Loc ["STRING_WELCOME_18"] = "if you change your mind, you can always modify again through options panel"
|
||||
|
||||
@@ -105,13 +105,10 @@ function _detalhes.switch:ShowMe (instancia)
|
||||
|
||||
_detalhes.switch.current_instancia = instancia
|
||||
|
||||
--_detalhes.switch.frame:SetFrameLevel (instancia.baseframe:GetFrameLevel() + 5)
|
||||
_detalhes.switch.frame:SetPoint ("topleft", instancia.baseframe, "topleft", 0, 1)
|
||||
_detalhes.switch.frame:SetPoint ("bottomright", instancia.baseframe, "bottomright", 0, 1)
|
||||
|
||||
_detalhes.switch.frame:SetBackdropColor (0.094, 0.094, 0.094, .8)
|
||||
--local _r, _g, _b, _a = _detalhes.switch.frame:GetBackdropColor()
|
||||
--gump:GradientEffect (_detalhes.switch.frame, "frame", _r, _g, _b, _a, _r, _g, _b, 1, 1)
|
||||
|
||||
local altura = instancia.baseframe:GetHeight()
|
||||
local mostrar_quantas = _math_floor (altura / _detalhes.switch.button_height) * 2
|
||||
|
||||
@@ -871,10 +871,12 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
--> pega as habilidades que pertence especificamente a cada fase
|
||||
local fases = boss_info.phases
|
||||
for fase_id, fase in _ipairs (fases) do
|
||||
if (fase.spells) then
|
||||
for index, spellid in _ipairs (fase.spells) do
|
||||
habilidades_poll [spellid] = true
|
||||
if (fases) then
|
||||
for fase_id, fase in _ipairs (fases) do
|
||||
if (fase.spells) then
|
||||
for index, spellid in _ipairs (fase.spells) do
|
||||
habilidades_poll [spellid] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -993,10 +995,12 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
local adds_pool = {}
|
||||
|
||||
--> pega as habilidades que pertence especificamente a cada fase
|
||||
for fase_id, fase in _ipairs (boss_info.phases) do
|
||||
if (fase.adds) then
|
||||
for index, addId in _ipairs (fase.adds) do
|
||||
adds_pool [addId] = true
|
||||
if (boss_info.phases) then
|
||||
for fase_id, fase in _ipairs (boss_info.phases) do
|
||||
if (fase.adds) then
|
||||
for index, addId in _ipairs (fase.adds) do
|
||||
adds_pool [addId] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1436,7 +1440,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
-- boss_info.spell_tables_info o erro de lua do boss é a habilidade dele que não foi declarada ainda
|
||||
|
||||
local mortes = _combat_object.last_events_tables
|
||||
local habilidades_info = boss_info.spell_mechanics --barra.extra pega esse cara aqui --> então esse erro é das habilidades que não tao
|
||||
local habilidades_info = boss_info.spell_mechanics or {} --barra.extra pega esse cara aqui --> então esse erro é das habilidades que não tao
|
||||
|
||||
for index, tabela in _ipairs (mortes) do
|
||||
--> {esta_morte, time, este_jogador.nome, este_jogador.classe, _UnitHealthMax (alvo_name), minutos.."m "..segundos.."s", ["dead"] = true}
|
||||
|
||||
Reference in New Issue
Block a user