Skip to content

Commit 0f1dd57

Browse files
committed
Merge branch 'release/3.11.0'
2 parents e934775 + c22700b commit 0f1dd57

File tree

17 files changed

+618
-259
lines changed

17 files changed

+618
-259
lines changed

.luacheckrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2700,7 +2700,6 @@ globals = {
27002700
"GetItemSpecInfo",
27012701
"GetItemSpell",
27022702
"GetItemStatDelta",
2703-
"GetItemStats",
27042703
"GetItemSubClassInfo",
27052704
"GetItemUniqueness",
27062705
"GetItemUpdateLevel",

.specs/Integration/Utils/AutoPass.spec.lua

Lines changed: 247 additions & 0 deletions
Large diffs are not rendered by default.

Core/Defaults.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ addon.defaults = {
6060
autoPassBoE = true,
6161
autoPassTransmog = true,
6262
autoPassTransmogSource = true,
63+
autoPassWeapons = true, -- Auto pass on weapons that can't be used for your class.
6364
printResponse = false, -- Print response in chat
6465
autoGroupLootGuildGroupOnly = true,
6566
-- General - Frame

Locale/enUS.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ L["opt_autoAddItems_desc"] = "Automatically add all eligible items to a session.
519519
L["opt_autoAddPets_name"] = "Add Pets"
520520
L["opt_autoAddPets_desc"] = "Automatically add all Companion Pets to a session."
521521
L["opt_autoAwardPrioList_desc"] = "Items are awarded to the first candidate found in your group according to this priority list."
522+
L.opt_autoPassWeapons_name = "Auto Pass Weapons"
523+
L.opt_autoPassWeapons_desc = "Check to enable auto passing of weapons your class can't equip."
522524
L.opt_autoGroupLootGuildGroupOnly_name = "Guild Groups Only"
523525
L.opt_autoGroupLootGuildGroupOnly_desc = "When enabled, RCLootCouncil will only do group loot auto pass when you're in a guild group."
524526
L["opt_autoTrade_desc"] = "Check to automatically add awarded items to the trade window when trading with the winner. If disabled, you'll see a popup before items are added."

Modules/History/CSVImport.lua

Lines changed: 40 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,12 @@ local mapIDsToText = {
427427
[2070] = "Battle of Dazar'alor",
428428
[2096] = "Crucible of Storms",
429429
[2164] = "The Eternal Palace",
430+
[2217] = "Ny'alotha",
431+
[2296] = "Castle Nathria",
432+
[2450] = "Sanctum of Domination",
433+
[2481] = "Sepulcher of the First Ones",
434+
[2522] = "Vault of the Incarnates",
435+
[2569] = "Aberrus, the Shadowed Crucible",
430436
}
431437

432438
local diffIDToText = {
@@ -464,34 +470,41 @@ local diffIDToText = {
464470
[149] = "Heroic",
465471
}
466472

473+
local function instanceNameFromMapID(mapID)
474+
if not (C_EncounterJournal.GetInstanceForGameMap and EJ_GetInstanceInfo) then return "" end
475+
return select(1,EJ_GetInstanceInfo(C_EncounterJournal.GetInstanceForGameMap(mapID)))
476+
end
477+
467478
function private:RebuildInstance(data, t, line)
468-
local instance, diffID, mapID = data[11], data[13], data[14]
469-
if mapID and diffID then
470-
mapID = tonumber(mapID)
471-
diffID = tonumber(diffID)
472-
if mapIDsToText[mapID] and diffIDToText[diffID] then
473-
t.instance = mapIDsToText[mapID] .."-".. diffIDToText[diffID]
474-
t.mapID = mapID
475-
t.difficultyID = diffID
476-
end
477-
elseif mapID and not diffID and not instance then
478-
mapID = tonumber(mapID)
479-
t.instance = mapIDsToText[mapID]
480-
t.mapID = mapID
481-
t.difficultyID = nil
482-
elseif instance then
483-
if string.find(instance, "-") then
484-
mapID = mapID or tInvert(mapIDsToText)[(string.split("-",instance))]
485-
diffID = diffID or tInvert(diffIDToText)[select(2,string.split("-",instance))]
486-
else
487-
mapID = mapID or tInvert(mapIDsToText)[instance]
488-
end
489-
t.instance = instance
490-
t.mapID = mapID
491-
t.difficultyID = diffID
492-
-- else
493-
-- self:AddError(line, string.format("%s|%s|%s", tostring(instance), tostring(diffID), tostring(mapID)), "Could not recreate instance info.")
494-
end
479+
local instance, diffID, mapID = data[11], tonumber(data[13] or 0), tonumber(data[14] or 0)
480+
if mapID and mapID > 0 then
481+
if diffID > 0 then
482+
local instanceNameFromMapID = instanceNameFromMapID(mapID)
483+
if instanceNameFromMapID == "" and mapIDsToText[mapID] and diffIDToText[diffID] then
484+
t.instance = mapIDsToText[mapID] .."-".. diffIDToText[diffID]
485+
else
486+
t.instance = instanceNameFromMapID .. "-" .. diffIDToText[diffID]
487+
end
488+
t.mapID = mapID
489+
t.difficultyID = diffID
490+
elseif not instance then
491+
t.instance = mapIDsToText[mapID] or ""
492+
t.mapID = mapID
493+
t.difficultyID = nil
494+
end
495+
elseif instance then
496+
if string.find(instance, "-") then
497+
mapID = mapID > 0 and mapID or tInvert(mapIDsToText)[(string.split("-",instance))]
498+
diffID = diffID > 0 and diffID or tInvert(diffIDToText)[select(2,string.split("-",instance))]
499+
else
500+
mapID = mapID or tInvert(mapIDsToText)[instance]
501+
end
502+
t.instance = instance
503+
t.mapID = mapID
504+
t.difficultyID = diffID
505+
-- else
506+
-- self:AddError(line, string.format("%s|%s|%s", tostring(instance), tostring(diffID), tostring(mapID)), "Could not recreate instance info.")
507+
end
495508
end
496509

497510
function private:AddError (lineNum, value, desc)

Modules/History/lootHistory.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function LootHistory.SetCellResponse(rowFrame, frame, data, cols, row, realrow,
485485
local args = data[realrow].cols[column].args
486486
frame.text:SetText(args.response)
487487

488-
if args.color and type(args.color) == "table" then -- Never version saves the color with the entry
488+
if args.color and type(args.color) == "table" and type(args.color[1]) == "number" then -- Never version saves the color with the entry
489489
frame.text:SetTextColor(unpack(args.color))
490490
elseif args.responseID and args.responseID > 0 then -- try to recreate color from ID
491491
frame.text:SetTextColor(unpack(addon:GetResponse("default", args.responseID).color))

Modules/options.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,14 +395,20 @@ function addon:OptionsTable()
395395
type = "toggle",
396396
disabled = function() return self.db.profile.autoPassTransmog end
397397
},
398-
printResponse = {
398+
autoPassWeapons = {
399399
order = 7,
400+
name = L.opt_autoPassWeapons_name,
401+
desc = L.opt_autoPassWeapons_desc,
402+
type = "toggle",
403+
},
404+
printResponse = {
405+
order = 8,
400406
name = L["Print Responses"],
401407
desc = L["print_response_desc"],
402408
type = "toggle",
403409
},
404410
autoGroupLootGuildGroupOnly = {
405-
order = 8,
411+
order = 9,
406412
name = L.opt_autoGroupLootGuildGroupOnly_name,
407413
desc = L.opt_autoGroupLootGuildGroupOnly_desc,
408414
type = "toggle"

Modules/sessionFrame.lua

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ end
3838

3939
function RCSessionFrame:OnEnable()
4040
addon.Log("RCSessionFrame enabled")
41-
self:RegisterMessage("RCLootStatusReceived", "UpdateLootStatus")
4241
addon:RegisterEvent("CINEMATIC_START", self.OnCinematicStart, self)
4342
addon:RegisterEvent("CINEMATIC_STOP", self.OnCinematicStop, self)
4443
self.showAfterCinematic = false
@@ -48,7 +47,6 @@ end
4847
function RCSessionFrame:OnDisable()
4948
self.frame:Hide()
5049
self.frame.rows = {}
51-
self:UnregisterMessage("RCLootStatusReceived")
5250
awardLater = false
5351
self.showAfterCinematic = false
5452
addon.Log("RCSessionFrame disabled")
@@ -140,20 +138,6 @@ function RCSessionFrame:Update()
140138
end
141139
end
142140

143-
function RCSessionFrame:UpdateLootStatus ()
144-
if not self.frame then return end
145-
local status, list = addon:GetLootStatusData()
146-
self.frame.lootStatus:SetText(status)
147-
self.frame.lootStatus:SetScript("OnEnter", function()
148-
GameTooltip:SetOwner(self.frame.lootStatus, "ANCHOR_RIGHT")
149-
GameTooltip:AddLine(L["Loot Status"])
150-
for _, v in ipairs(list) do
151-
GameTooltip:AddDoubleLine(addon:GetUnitClassColoredName(v.name), v.text)
152-
end
153-
GameTooltip:Show()
154-
end)
155-
end
156-
157141
function RCSessionFrame:DeleteItem(session, row)
158142
addon.Log:D("Delete row:", row, "Sesison:", session)
159143
ml:RemoveItem(session) -- remove the item from MLs lootTable
@@ -259,16 +243,6 @@ function RCSessionFrame:GetFrame()
259243
end)
260244
f.closeBtn = b2
261245

262-
-- Loot Status
263-
f.lootStatus = addon.UI:New("Text", f.content, " ")
264-
f.lootStatus:SetTextColor(1,1,1,1) -- White for now
265-
f.lootStatus:SetHeight(20)
266-
f.lootStatus:SetWidth(75)
267-
-- f.lootStatus:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", -10, 14)
268-
f.lootStatus:SetPoint("LEFT", f.closeBtn, "RIGHT", 13, 1)
269-
f.lootStatus:SetScript("OnLeave", addon.Utils.HideTooltip)
270-
f.lootStatus.text:SetJustifyH("LEFT")
271-
272246
local st = ST:CreateST(self.scrollCols, 5, ROW_HEIGHT, nil, f.content)
273247
st.head:SetHeight(0)
274248
st.frame:SetPoint("TOPLEFT",f,"TOPLEFT",10,-20)

Modules/votingFrame.lua

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ end
9393
function RCVotingFrame:OnEnable()
9494
self:RegisterComms()
9595
self:RegisterBucketEvent({"UNIT_PHASE", "ZONE_CHANGED_NEW_AREA"}, 1, "Update") -- Update "Out of instance" text when any raid members change zone
96-
self:RegisterMessage("RCLootStatusReceived", "UpdateLootStatus")
9796
self:RegisterMessage("RCLootTableAdditionsReceived", "OnLootTableAdditionsReceived")
9897
db = addon:Getdb()
9998
--active = true
@@ -113,7 +112,6 @@ function RCVotingFrame:OnDisable() -- We never really call this
113112
self:Hide()
114113
self.frame:SetParent(nil)
115114
self.frame = nil
116-
wipe(addon.lootStatus)
117115
wipe(lootTable)
118116
active = false
119117
session = 1
@@ -998,6 +996,7 @@ function RCVotingFrame:GetFrame()
998996
iState:SetPoint("LEFT", ilvl, "RIGHT", 5, 0)
999997
iState:SetTextColor(0,1,0,1) -- Green
1000998
iState:SetText("")
999+
iState:SetJustifyH("LEFT")
10011000
f.iState = iState
10021001

10031002
local iType = f.content:CreateFontString(nil, "OVERLAY", "GameFontNormal")
@@ -1085,15 +1084,6 @@ function RCVotingFrame:GetFrame()
10851084
rf:SetWidth(rft:GetStringWidth())
10861085
f.rollResult = rf
10871086

1088-
-- Loot Status
1089-
f.lootStatus = addon.UI:New("Text", f.content, " ")
1090-
f.lootStatus:SetTextColor(1,1,1,1) -- White for now
1091-
f.lootStatus:SetHeight(20)
1092-
f.lootStatus:SetWidth(150)
1093-
f.lootStatus:SetPoint("RIGHT", rf, "LEFT", -10, 0)
1094-
f.lootStatus:SetScript("OnLeave", addon.Utils.HideTooltip)
1095-
f.lootStatus.text:SetJustifyH("RIGHT")
1096-
10971087
-- Owner
10981088
f.ownerString = {}
10991089
f.ownerString.icon = addon.UI:New("Icon", f.content)
@@ -1140,36 +1130,6 @@ function RCVotingFrame:GetFrame()
11401130
return f;
11411131
end
11421132

1143-
function RCVotingFrame:UpdateLootStatus()
1144-
if not self.frame then return end -- Might not be created yet
1145-
if not addon.isCouncil then return end
1146-
1147-
local status, list = addon:GetLootStatusData()
1148-
self.frame.lootStatus:SetText(L["Loot Status"] .. ": " .. status)
1149-
self.frame.lootStatus:SetScript("OnEnter", function()
1150-
GameTooltip:SetOwner(UIParent, "ANCHOR_CURSOR")
1151-
GameTooltip:AddLine(L["Loot Status"])
1152-
if addon.debug then
1153-
GameTooltip:AddLine("Debug")
1154-
for id, v in pairs(addon.lootStatus) do
1155-
if id ~= addon.lastEncounterID then
1156-
GameTooltip:AddDoubleLine(id, v.num,1,1,1,1,1,1)
1157-
else
1158-
GameTooltip:AddLine("EncounterID: " .. addon.lastEncounterID)
1159-
for player, item in pairs(v) do
1160-
GameTooltip:AddDoubleLine(player, item)
1161-
end
1162-
end
1163-
end
1164-
GameTooltip:AddLine(" ")
1165-
end
1166-
for _, v in ipairs(list) do
1167-
GameTooltip:AddDoubleLine(addon:GetUnitClassColoredName(v.name), v.text)
1168-
end
1169-
GameTooltip:Show()
1170-
end)
1171-
end
1172-
11731133
function RCVotingFrame:UpdatePeopleToVote()
11741134
local hasVoted = {}
11751135
local shouldVote = {}

RCLootCouncil.toc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## Author: Potdisc
2-
## Interface: 100205
3-
## Notes: Interface for running a Loot Council v3.10.5
2+
## Interface: 100206
3+
## Notes: Interface for running a Loot Council v3.11.0
44
## Title: RCLootCouncil
5-
## Version: 3.10.5
5+
## Version: 3.11.0
66
## SavedVariables: RCLootCouncilDB, RCLootCouncilLootDB
77
## OptionalDeps: LibStub, CallbackHandler-1.0, Ace3, lib-st, LibWindow-1.1, LibDialog-1.0
88
## X-Curse-Project-ID: 39928

0 commit comments

Comments
 (0)