diff --git a/LootplanIt.toc b/LootplanIt.toc index 7700a17..49a0b02 100755 --- a/LootplanIt.toc +++ b/LootplanIt.toc @@ -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 diff --git a/README.md b/README.md index 2aea711..ea700c6 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/classes/db.lua b/classes/db.lua index 1c6de4d..75b411e 100755 --- a/classes/db.lua +++ b/classes/db.lua @@ -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] = {} @@ -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) diff --git a/classes/tooltip.lua b/classes/tooltip.lua index b351da6..abdf8e6 100755 --- a/classes/tooltip.lua +++ b/classes/tooltip.lua @@ -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(" ")