diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 05b637ae..b1f94eee 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 347 +local dversion = 348 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) @@ -2451,7 +2451,7 @@ end options_frame:SetPoint ("center", UIParent, "center") options_frame.TitleText:SetText (title) - options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]]) + --options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]]) return options_frame diff --git a/boot.lua b/boot.lua index e445a949..af502749 100644 --- a/boot.lua +++ b/boot.lua @@ -18,7 +18,7 @@ _detalhes.BFACORE = 131 --core version on BFA launch _detalhes.SHADOWLANDSCORE = 143 --core version on Shadowlands launch -- - _detalhes.dragonflight_beta_version = 26 + _detalhes.dragonflight_beta_version = 27 Details = _detalhes diff --git a/classes/class_damage.lua b/classes/class_damage.lua index 212d4679..a466c4ec 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -4975,7 +4975,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia) if (normal_hits > 0) then local normal_dmg = esta_magia.n_dmg local media_normal = normal_dmg/normal_hits - local T = (meu_tempo*normal_dmg)/esta_magia.total + local T = (meu_tempo*normal_dmg)/ max(esta_magia.total, 0.001) local P = media/media_normal*100 T = P*T/100 @@ -4990,7 +4990,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia) t1[5] = Loc ["STRING_MAXIMUM_SHORT"] .. ": " .. Details:comma_value (esta_magia.n_max) t1[6] = Loc ["STRING_AVERAGE"] .. ": " .. Details:comma_value (media_normal) t1[7] = Loc ["STRING_DPS"] .. ": " .. Details:comma_value (normal_dmg/T) - t1[8] = normal_hits .. " [|cFFC0C0C0" .. _cstr ("%.1f", normal_hits/total_hits*100) .. "%|r]" + t1[8] = normal_hits .. " [|cFFC0C0C0" .. _cstr ("%.1f", normal_hits/max(total_hits, 0.0001)*100) .. "%|r]" end @@ -4998,7 +4998,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia) if (esta_magia.c_amt > 0) then local media_critico = esta_magia.c_dmg/esta_magia.c_amt local T = (meu_tempo*esta_magia.c_dmg)/esta_magia.total - local P = media/media_critico*100 + local P = media/max(media_critico, 0.0001)*100 T = P*T/100 local crit_dps = esta_magia.c_dmg/T if (not crit_dps) then diff --git a/classes/class_heal.lua b/classes/class_heal.lua index fb15cf4e..5db51df5 100644 --- a/classes/class_heal.lua +++ b/classes/class_heal.lua @@ -2337,7 +2337,7 @@ function atributo_heal:MontaDetalhesHealingDone (spellid, barra) if (esta_magia.c_amt > 0) then local media_critico = esta_magia.c_curado/esta_magia.c_amt local T = (meu_tempo*esta_magia.c_curado)/esta_magia.total - local P = media/media_critico*100 + local P = media/max(media_critico, 0.0001)*100 T = P*T/100 local crit_hps = esta_magia.c_curado/T if (not crit_hps) then diff --git a/core/plugins.lua b/core/plugins.lua index bad51d2e..08a7cfb7 100644 --- a/core/plugins.lua +++ b/core/plugins.lua @@ -366,7 +366,7 @@ options_frame:SetPoint ("center", UIParent, "center") options_frame.TitleText:SetText (title) - options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]]) + --options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]]) return options_frame diff --git a/core/windows.lua b/core/windows.lua index 912b6e1a..b59bbf56 100644 --- a/core/windows.lua +++ b/core/windows.lua @@ -1267,7 +1267,7 @@ tinsert (UISpecialFrames, "DetailsUpdateDialog") updatewindow_frame:SetPoint ("center", UIParent, "center") updatewindow_frame:SetSize (512, 200) - updatewindow_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-GNOME]]) + --updatewindow_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-GNOME]]) updatewindow_frame.TitleText:SetText ("A New Version Is Available!") diff --git a/frames/window_playerbreakdown.lua b/frames/window_playerbreakdown.lua index 5b25f493..57e874b9 100644 --- a/frames/window_playerbreakdown.lua +++ b/frames/window_playerbreakdown.lua @@ -3385,8 +3385,8 @@ function gump:CriaJanelaInfo() bar [2]:SetValue (data [2] / top * 100) --bar [2]:SetValue (100) bar [3][1] = data [1].counter --tooltip hits - bar [3][2] = data [2] / data [1].counter --tooltip average - bar [3][3] = _math_floor (data [1].c_amt / data [1].counter * 100) --tooltip critical + bar [3][2] = data [2] / max(data [1].counter, 0.0001) --tooltip average + bar [3][3] = _math_floor (data [1].c_amt / max(data [1].counter, 0.0001) * 100) --tooltip critical bar [3][4] = spellid --player 2 diff --git a/frames/window_report.lua b/frames/window_report.lua index 71294cbe..30985566 100644 --- a/frames/window_report.lua +++ b/frames/window_report.lua @@ -861,8 +861,8 @@ local function cria_drop_down (este_gump) local f = CreateFrame ("frame", window:GetName() .. "F", window, "ButtonFrameTemplate") f:SetAllPoints() - f.portrait:SetTexture ("Interface\\AddOns\\Details\\images\\report_frame_icons") - f.portrait:SetTexCoord (1/256, 64/256, 1/256, 64/256) + --f.portrait:SetTexture ("Interface\\AddOns\\Details\\images\\report_frame_icons") + --f.portrait:SetTexCoord (1/256, 64/256, 1/256, 64/256) f.TitleText:SetText (Loc ["STRING_REPORTFRAME_WINDOW_TITLE"]) f:SetFrameLevel (window:GetFrameLevel()-1)