Skip to content

Commit add971a

Browse files
committed
Update for Burning Crusade Anniversary
1 parent 2ba2bce commit add971a

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"utf8": "disable"
4242
},
4343
"Lua.workspace.library": [
44-
"~\\.vscode\\extensions\\ketho.wow-api-0.20.8\\Annotations\\Core"
44+
"~\\.vscode\\extensions\\ketho.wow-api-0.21.0\\Annotations\\Core"
4545
]
4646
}

Compat.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local VP = VendorPrice
22

3-
if VP.isRetail then
3+
if VP.mainline then
44
return
55
end
66

VendorPrice.lua

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
VendorPrice = {}
22
local VP = VendorPrice
33

4-
VP.isRetail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
5-
VP.isVanilla = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
6-
VP.isMop = WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC
7-
8-
if VP.isRetail then
4+
VP.mainline = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
5+
if VP.mainline then
96
return
107
end
118

9+
VP.classic_era = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
10+
VP.bc_classic = WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC
11+
VP.mists_classic = WOW_PROJECT_ID == WOW_PROJECT_MISTS_CLASSIC
12+
1213
local SELL_PRICE_TEXT = format("%s:", SELL_PRICE)
1314
local overridePrice
1415

@@ -74,9 +75,9 @@ function VP:SetPrice(tt, hasMopTooltip, source, count, item, isOnTooltipSetItem)
7475
if sellPrice and sellPrice > 0 and not CheckRecipe(tt, classID, isOnTooltipSetItem) then
7576
local isShift = IsShiftKeyDown() and count > 1
7677
local displayPrice = isShift and sellPrice or sellPrice * count
77-
if self.isVanilla then
78+
if self.classic_era or self.bc_classic then
7879
SetTooltipMoney(tt, displayPrice, nil, SELL_PRICE_TEXT)
79-
elseif self.isMop then
80+
elseif self.mists_classic then
8081
if hasMopTooltip then
8182
if isShift then
8283
overridePrice = displayPrice

VendorPrice.toc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
## Interface: 11507, 50500
1+
## Interface: 50503, 20505, 11508
22
## Version: @project-version@
33
## Title: Vendor Price
44
## Notes: Displays the price of an item when not at a vendor
55
## Author: Ketho, Icesythe7
6+
## IconTexture: 132094
67
## X-Curse-Project-ID: 322091
78
## X-WoWI-ID: 24922
89
## X-Wago-ID: RqGY4EKg

0 commit comments

Comments
 (0)