From 5500974b3b1bf41a0452b86544aade19cc84f57e Mon Sep 17 00:00:00 2001 From: Scott Harrison Date: Tue, 24 Jan 2023 22:09:08 -0500 Subject: [PATCH] Allows prerequisites with counts for items. Upates TOC to 100005. --- Wholly.lua | 6 +++++- Wholly.toc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Wholly.lua b/Wholly.lua index bddfc3e..809f19c 100644 --- a/Wholly.lua +++ b/Wholly.lua @@ -436,6 +436,8 @@ -- Corrects the problem where the location of the Wholly quest panel is not retained across restarts. -- Adds support for quests that have major faction renown level prerequisites. -- Adds support for quests that have POI presence prerequisites. +-- Adds support for items with specific counts as prerequisites. +-- Changes retail interface to 100005. -- -- Known Issues -- @@ -2756,7 +2758,9 @@ WorldMapFrame:AddDataProvider(self.mapPinsProvider) elseif questCode == 'K' or questCode == 'k' then local name = GRAIL:NPCName(numeric) local itemString = (questCode == 'k') and self.s.ITEM_LACK or self.s.ITEM - return format("|c%s%s|r [%s]", colorCode, name, itemString) + local count = tonumber(subcode) + local countString = count and "("..count..") " or "" + return format("|c%s%s|r %s[%s]", colorCode, name, countString, itemString) elseif questCode == 'L' or questCode == 'l' then local lessThanString = (questCode == 'l') and "<" or "" return format("|c%s%s %s%d|r", colorCode, self.s.LEVEL, lessThanString, numeric) diff --git a/Wholly.toc b/Wholly.toc index f0531eb..e070c9b 100644 --- a/Wholly.toc +++ b/Wholly.toc @@ -1,4 +1,4 @@ -## Interface: 100002 +## Interface: 100005 ## Title: Wholly ## Author: Scott M Harrison ## Notes: Shows quest database and map pins