Skip to content

Commit

Permalink
Allows prerequisites with counts for items. Upates TOC to 100005.
Browse files Browse the repository at this point in the history
  • Loading branch information
smaitch committed Jan 25, 2023
1 parent df1da83 commit 5500974
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Wholly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
--
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Wholly.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100002
## Interface: 100005
## Title: Wholly
## Author: Scott M Harrison
## Notes: Shows quest database and map pins
Expand Down

0 comments on commit 5500974

Please sign in to comment.