Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d6ceff2
Update gui.lua
ZadarThule Jan 13, 2021
33a5aeb
Merge pull request #1 from ZadarThule/ZadarThule-patch-1
ZadarThule Jan 13, 2021
9ba3b26
Update gui.lua
ZadarThule Jan 13, 2021
bc6f011
Update gui.lua
ZadarThule Jan 13, 2021
388a037
Update gui.lua
ZadarThule Jan 13, 2021
0c14670
Update queries.lua
ZadarThule Jan 13, 2021
f823a13
Update queries.lua
ZadarThule Jan 13, 2021
973dc1f
Update gui.lua
ZadarThule Jan 14, 2021
341edc0
Update loot.lua
ZadarThule Jan 14, 2021
bba0a2e
Merge pull request #2 from ZadarThule/patch-1
ZadarThule Jan 14, 2021
7ebc4bf
Create check.yml
ZadarThule Jan 14, 2021
4b26bee
Update check.yml
ZadarThule Jan 14, 2021
1ff0f40
Delete .github/workflows directory
ZadarThule Jan 14, 2021
7416f17
removed whitespace
ZadarThule Jan 14, 2021
93bb5b7
Create CI.yml
ZadarThule Jan 14, 2021
23ed6d4
Create .luacheckrc
ZadarThule Jan 14, 2021
32722b5
delete whitespace
ZadarThule Jan 14, 2021
8e847f7
Update .luacheckrc
ZadarThule Jan 14, 2021
8b2d482
remove whitespace
ZadarThule Jan 14, 2021
57f06c0
Update .luacheckrc
ZadarThule Jan 14, 2021
0d4c451
Update .luacheckrc
ZadarThule Jan 14, 2021
0471998
locals
ZadarThule Jan 14, 2021
b54516f
Update .luacheckrc
ZadarThule Jan 14, 2021
e475ab3
whitespace
ZadarThule Jan 14, 2021
158fad9
Merge pull request #4 from ZadarThule/master
ZadarThule Jan 14, 2021
cb69f7a
luacheck fixes
ZadarThule Jan 14, 2021
65a946f
Merge pull request #5 from ZadarThule/master
ZadarThule Jan 14, 2021
e26d5f3
Update iteminfo.lua
ZadarThule Jan 14, 2021
bec7669
Update .luacheckrc
ZadarThule Jan 14, 2021
6b865a8
Create .luacheckrc
ZadarThule Jan 14, 2021
5b4b560
Merge branch 'Prio3-Workflow' into master
ZadarThule Jan 14, 2021
e132edb
Update .luacheckrc
ZadarThule Jan 14, 2021
be0f553
Delete .github/workflows directory
ZadarThule Jan 14, 2021
ad643c4
Update .luacheckrc
ZadarThule Jan 14, 2021
33738bd
Empty lines
ZadarThule Jan 14, 2021
227f140
Create main.yml
ZadarThule Jan 14, 2021
d24a02f
Delete .github/workflows directory
ZadarThule Jan 14, 2021
dc73fdf
Delete .luacheckrc
ZadarThule Jan 14, 2021
3f47339
Create luacheck.yml
ZadarThule Jan 14, 2021
e8fa6b5
Add luacheck rc file
ZadarThule Jan 14, 2021
120635d
Delete .github/workflows directory
ZadarThule Jan 14, 2021
1f294d3
Create luacheck.yml
ZadarThule Jan 14, 2021
282a7ff
Unused variables
ZadarThule Jan 14, 2021
657051a
Merge branch 'master' of https://github.com/ZadarThule/prio3
ZadarThule Jan 14, 2021
0fa6471
Create .gitattributes
ZadarThule Jan 14, 2021
069c8c1
fixes #23
ZadarThule Jan 15, 2021
d0e1f97
Feature #19
ZadarThule Jan 15, 2021
eabe796
Merge remote-tracking branch 'upstream/master' into forkMaster
ZadarThule Jan 17, 2021
5272498
luacheck cleanup
ZadarThule Jan 17, 2021
73bf296
Update comms.lua
ZadarThule Jan 17, 2021
2a7f89d
luacheck cleanup
ZadarThule Jan 17, 2021
4222110
cleared empty end line
ZadarThule Jan 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ globals = {
"Prio3",
"tempty",
"tprint",
"tRemoveValue",
"isUserMasterLooter",

-- other WoW APIs
"GameFontGreenSmall",
Expand Down
2 changes: 1 addition & 1 deletion comms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Prio3:GROUP_ROSTER_UPDATE()
end

Prio3.previousGroupState = UnitInParty("player")

-- look into Loot Method
Prio3:PARTY_LOOT_METHOD_CHANGED()
end
Expand Down
10 changes: 5 additions & 5 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function tprint (tbl, indent)
return toprint
end

function tRemoveValue(t, value)
function tRemoveValue(t, value)
local idx = nil
for i,v in pairs(t) do
-- do not remove while iterating table
Expand All @@ -176,7 +176,7 @@ function tempty(t)
end


function isUserMasterLooter()
function isUserMasterLooter()
local _, _, masterlooterRaidID = GetLootMethod()
if masterlooterRaidID then
local name, rank, subgroup, level, class, fileName, zone, online, isDead, role, isML = GetRaidRosterInfo(masterlooterRaidID);
Expand Down Expand Up @@ -315,9 +315,9 @@ Prio3.prioOptionsTable = {
set = function(info,val) Prio3.db.profile.showmasterlooterhint = val end,
get = function(info) return Prio3.db.profile.showmasterlooterhint end
},

newline60 = { name="", type="description", order=60 },
priozero = {
priozero = {
name = L["Enable Prio 0"],
desc = L["Activates output for Prio 0. If someone sets Prio 1, 2 and 3 to the same item, this gets precedence."],
type = "toggle",
Expand All @@ -326,7 +326,7 @@ Prio3.prioOptionsTable = {
get = function(info) return Prio3.db.profile.prio0 end,
},


}
},
grpquery = {
Expand Down
8 changes: 4 additions & 4 deletions loot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ function Prio3:HandleLoot(itemLink, qualityFound)
tonumber(prios[2]) == tonumber(itemId) and
tonumber(prios[3]) == tonumber(itemId) then
table.insert(itemprios.p0, user)

-- if a user has Prio0, remove him from Prio 1,2,3 outputs
tRemoveValue(itemprios.p1, user)
tRemoveValue(itemprios.p2, user)
tRemoveValue(itemprios.p3, user)
tRemoveValue(itemprios.p1, user)
tRemoveValue(itemprios.p2, user)
tRemoveValue(itemprios.p3, user)
end
end

Expand Down