Skip to content

Commit

Permalink
added bis items received and top 3 items received to tooltip (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
zahdr authored Sep 22, 2023
1 parent 96b386d commit beeb66a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.release
.vscode
LootPlanIt.lua
2 changes: 1 addition & 1 deletion LootplanIt.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: LootPlanIt
## Author: zahdr
## Notes: Make Loot Council easy!
## Version: v0.3.0
## Version: v0.4.0
## DefaultState: enabled
## SavedVariables: LootPlanItDB
## X-Curse-Project-ID: 876058
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@
`"/lpi reset" or "/lpi r" - resets the database if something fails after fe. an update`

#### **Data Format**
`{{Item ID; Player priority; BIS list priority; Player name; Player parse}}`
`{{Item ID; Player priority; BIS list priority; Player name; BIS received; TOP3 received; Player parse}}`


#### **Example**
`{45518;100%;1;Raider1,100%},{45518;80%;3;Raider2;90%},{45518;50%;8;Raider3;100%}`
`{{45518;100%;1;Raider1;7;2;100%},{45518;95%;3;Raider2;9;1;90%},{45518;70%;8;Raider3;5;2;100%}}`



#### **Data Explanations**
- Item ID = ID of the item
- Player Priority = Calculated player priority bound to the item (in which order do players get the item - percentage based)
- Player Priority = Player priority bound to the item (in which order do - players get the item - percentage based)
- BIS list priority = Slot priority on the players bis list
- Player name = Name of player
- BIS received = Number of BIS items received by player
- TOP3 received = Amount of TOP3 BIS items received by player
- Player parse = Parses of player
8 changes: 6 additions & 2 deletions classes/db.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ function LPI:importLootCouncilData(data)
local itemRating = entry[2]
local itemPrio = entry[3]
local playerName = entry[4]
local playerParse = entry[5]

local bisReceived = entry[5]
local topThreeReceived = entry[6]
local playerParse = entry[7]

if not tmpTbl[itemId] then
tmpTbl[itemId] = {}
end
Expand All @@ -69,6 +71,8 @@ function LPI:importLootCouncilData(data)
itemRating = itemRating,
itemPrio = itemPrio,
playerName = playerName,
bisReceived = bisReceived,
topThreeReceived = topThreeReceived,
playerParse = playerParse
}

Expand Down
2 changes: 1 addition & 1 deletion classes/tooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function tooltipAddPrios(tooltip)
tooltip:AddLine(" ")
tooltip:AddLine(string.format("|c00%s%s", "0088ff", LPI.title .. " Rating"))
end
tooltip:AddLine(" " .. record.itemRating .. " P" .. record.itemPrio .. " " .. record.playerName .. " (Parse: " .. record.playerParse .. ")")
tooltip:AddLine(" " .. record.itemRating .. " P" .. record.itemPrio .. " " .. record.playerName .. " (BIS: " .. record.bisReceived .. "(" .. record.topThreeReceived .. "), Parse: " .. record.playerParse .. ")")
end
if loopStop == 1 then
tooltip:AddLine(" ")
Expand Down

0 comments on commit beeb66a

Please sign in to comment.