Skip to content

Commit

Permalink
added player parses to tooltip (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
zahdr authored Jul 24, 2023
1 parent bb60eec commit 4e5b4ea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
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.2.4
## Version: v0.3.0
## DefaultState: enabled
## SavedVariables: LootPlanItDB
## X-Curse-Project-ID: 876058
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
`"/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}}`
`{{Item ID; Player priority; BIS list priority; Player name; Player parse}}`


#### **Example**
`{45518;1;1;Raider1},{45518;2;3;Raider2},{45518;3;8;Raider3}`
`{45518;1;1;Raider1,100%},{45518;2;3;Raider2;90%},{45518;3;8;Raider3,;100%}`


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

if not tmpTbl[itemId] then
tmpTbl[itemId] = {}
Expand All @@ -67,7 +68,8 @@ function LPI:importLootCouncilData(data)
local record = {
itemRating = itemRating,
itemPrio = itemPrio,
playerName = playerName
playerName = playerName,
playerParse = playerParse
}

table.insert(tmpTbl[itemId], record)
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)
tooltip:AddLine(" " .. record.itemRating .. " P" .. record.itemPrio .. " " .. record.playerName .. " (Parse: " .. record.playerParse .. ")")
end
if loopStop == 1 then
tooltip:AddLine(" ")
Expand Down

0 comments on commit 4e5b4ea

Please sign in to comment.