Skip to content

Commit

Permalink
Merge branch 'release/3.11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
evil-morfar committed Apr 24, 2024
2 parents 0f1dd57 + 0b66f16 commit 12edc99
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
1 change: 1 addition & 0 deletions Core/Defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ addon.defaults = {
[152902] = true, [152906] = true, [152907] = true, [155831] = true, -- Rune of Passage (Antorus shortcut item), Pantheon's Blessing
[152908] = true, [152909] = true, [152910] = true, -- Sigil of the Dark Titan (Another Antorus shortcut item)
[162461] = true, -- Sanguicell (BfA crafting)
[213089] = true, -- Antique Bronze Bullion (DF S4 Weapon/Trinket currency)
},
},
} -- defaults end
Expand Down
4 changes: 2 additions & 2 deletions RCLootCouncil.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Author: Potdisc
## Interface: 100206
## Notes: Interface for running a Loot Council v3.11.0
## Notes: Interface for running a Loot Council v3.11.1
## Title: RCLootCouncil
## Version: 3.11.0
## Version: 3.11.1
## SavedVariables: RCLootCouncilDB, RCLootCouncilLootDB
## OptionalDeps: LibStub, CallbackHandler-1.0, Ace3, lib-st, LibWindow-1.1, LibDialog-1.0
## X-Curse-Project-ID: 39928
Expand Down
23 changes: 20 additions & 3 deletions Utils/tokenData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,14 @@ function RCLootCouncil:ExportTokenData(nextID)
frame.exportFrame.edit:SetText(exports)
end

-- REVIEW: Doesn't work. Neither does the new C_TooltipInfo system.
--- Fetches the slot of a token from its tooltip by
--- searching the `leftText` of each line for keywords.
--- @param id ItemID The itemID of the item to scan.
--- @return string #The slot name, or "" if not found.
function RCLootCouncil:GetTokenSlotFromTooltip(id)
local lines = self:GetTooltipLines(id)
for _, text in ipairs(lines) do
print("Text:", text)
if text and text:sub(0, 4) == "Use:" then
self.Log:d("Found text", text)
for invSlot, keywords in pairs(keyWords) do
for _, keyword in pairs(keywords) do
if text:lower():find(keyword) then
Expand Down Expand Up @@ -809,6 +806,26 @@ _G.RCTokenTable = {
[207479] = "ShoulderSlot", -- Mystic Smoldering Dreamheart,
[207480] = "ShoulderSlot", -- Venerated Smoldering Dreamheart,
[207481] = "ShoulderSlot", -- Zenith Smoldering Dreamheart,
[217316] = "ChestSlot", -- Dreadful Fleeting Hourglass,
[217317] = "ChestSlot", -- Mystic Fleeting Hourglass,
[217318] = "ChestSlot", -- Venerated Fleeting Hourglass,
[217319] = "ChestSlot", -- Zenith Fleeting Hourglass,
[217320] = "HandsSlot", -- Dreadful Quickened Bronzestone,
[217321] = "HandsSlot", -- Mystic Quickened Bronzestone,
[217322] = "HandsSlot", -- Venerated Quickened Bronzestone,
[217323] = "HandsSlot", -- Zenith Quickened Bronzestone,
[217324] = "HeadSlot", -- Dreadful Decelerating Chronograph,
[217325] = "HeadSlot", -- Mystic Decelerating Chronograph,
[217326] = "HeadSlot", -- Venerated Decelerating Chronograph,
[217327] = "HeadSlot", -- Zenith Decelerating Chronograph,
[217328] = "LegsSlot", -- Dreadful Ephemeral Hypersphere,
[217329] = "LegsSlot", -- Mystic Ephemeral Hypersphere,
[217330] = "LegsSlot", -- Venerated Ephemeral Hypersphere,
[217331] = "LegsSlot", -- Zenith Ephemeral Hypersphere,
[217332] = "ShoulderSlot", -- Dreadful Synchronous Timestrand,
[217333] = "ShoulderSlot", -- Mystic Synchronous Timestrand,
[217334] = "ShoulderSlot", -- Venerated Synchronous Timestrand,
[217335] = "ShoulderSlot", -- Zenith Synchronous Timestrand,
}

-- The base item level for the token on normal difficulty
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 3.11.1

## Changes

Added support for tier tokens from Awakened Raids.

Added Antique Bronze Bullion to the ignore list.

# 3.11.0

## Changes
Expand Down

0 comments on commit 12edc99

Please sign in to comment.