More 10.2

- Added more trinkets ids.
- Added 'On Use' trinkets amount of uses on Breakdown Window.
- Added Details.GetItemSpellInfo(spellId): return information about an item added as a custom spell (usually trinkets).
This commit is contained in:
Tercio Jose
2023-09-23 10:39:38 -03:00
parent ea7027c2a0
commit 387ed90807
8 changed files with 64 additions and 31 deletions
+3 -1
View File
@@ -5046,7 +5046,6 @@ function damageClass:MontaInfoDamageDone() --I guess this fills the list of spel
if (spellName) then
---@type number in which index the spell with the same name was stored
local index = alreadyAdded[spellName]
if (index and bShouldMergePlayerSpells) then
---@type spelltableadv
@@ -5758,6 +5757,9 @@ function damageClass:BuildSpellDetails(spellBar, spellBlockContainer, blockIndex
blockLine1.leftText:SetText("Procs: " .. trinketProc.total)
end
end
elseif (Details.GetItemSpellInfo(spellId)) then
blockLine1.leftText:SetText("Uses: " .. totalCasts)
end
blockLine1.rightText:SetText(Loc ["STRING_HITS"]..": " .. totalHits) --hits and uptime