Skip to content

Commit

Permalink
Added more trinkets to the list of trinkets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 5, 2022
1 parent 5d04d6c commit fd25f6e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
10 changes: 8 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
local addonName, Details222 = ...
local version, build, date, tocversion = GetBuildInfo()

_detalhes.build_counter = 10304
_detalhes.alpha_build_counter = 10304 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 10333
_detalhes.alpha_build_counter = 10333 --if this is higher than the regular counter, use it instead
_detalhes.dont_open_news = true
_detalhes.game_version = version
_detalhes.userversion = version .. " " .. _detalhes.build_counter
Expand Down Expand Up @@ -86,6 +86,12 @@ do
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale( "Details" )

local news = {
{"v10.0.2.10333.147", "Nov 18th, 2022"},
"Added two checkboxes for Merge Pet and Player spell on the Breakdown window.",
"Added uptime for Hunter's Pet Frenzy Buff, it now show in the 'Auras' tab in the Breakdown Window.",
"/played is showing something new!",
"Options panel now closes by pressing Escape (Flamanis).",

{"v10.0.2.10277.146", "Nov 18th, 2022"},
"REMINDER: '/details coach' to get damage/healing/deaths in real time as the 21st person (coach) for the next raid tier in dragonflight.",
"New Compare tab: recreated from scratch, this new Compare has no player limitation, pets merged, bigger lines.",
Expand Down
10 changes: 9 additions & 1 deletion frames/window_playerbreakdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,15 @@ function _detalhes:AbreJanelaInfo (jogador, from_att_change, refresh, ShiftKeyDo
end
end

info:SetPoint("center", _G.UIParent, "center", 0, 0)
local okay = pcall(function()
info:SetPoint("center", _G.UIParent, "center", 0, 0)
end)

if (not okay) then
info:ClearAllPoints()
info:SetPoint("center", _G.UIParent, "center", 0, 0)
end

info:SetUserPlaced(false)
info:SetDontSavePosition(true)
info.bHasInitialized = true
Expand Down
7 changes: 7 additions & 0 deletions functions/spellcache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ do
[387036] = {name = GetSpellInfo(387036) .. formatTextForItem(193748)}, --trinket: Kyrakka's Searing Embers (heal)
[397376] = {name = GetSpellInfo(397376) .. formatTextForItem(193748), isPassive = true, itemId = 193748}, --trinket: Kyrakka's Searing Embers (damage)
--[] = {name = GetSpellInfo() .. formatTextForItem(193757), isPassive = true}, --trinket: Ruby Whelp Shell

[214985] = {name = GetSpellInfo(214985) .. formatTextForItem(137486)}, --trinket: Windscar Whetstone
[384004] = {name = GetSpellInfo(384004) .. formatTextForItem(193815)}, --trinket: Homeland Raid Horn
--[] = {name = GetSpellInfo() .. formatTextForItem()}, --trinket: Mutated Magmammoth Scale - did no proc

--/dump C_Item.GetItemNameByID(137486) --to check an item
--default tooltip script gets the item id
}

for spellId, spellCustomization in pairs(dragonflightTrinkets) do
Expand Down

0 comments on commit fd25f6e

Please sign in to comment.