Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added bis items received and top 3 items received to tooltip #23

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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