Skip to content

Commit 1737d14

Browse files
committed
Auto-style for Valor, Conquest
Auto-style if no type specified like [Currency:VP] Earnable Point is visible when total earned is less then 8000
1 parent ace94dc commit 1737d14

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Core.lua

+8-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ local _TranslationTable = {
6464
local saved_currency = db.currencyCount[id] or { }
6565
saved_currency.quantity = saved_currency.quantity or saved_currency.total -- For compatibility
6666
saved_currency.total = nil
67-
if not currency_type or currency_type == "" or currency_type == "0" then -- Type-0: [Icon][Quantity]
67+
if not currency_type or currency_type == "" then
68+
-- Earnable amount is shown when total earned amount is under 8000
69+
if saved_currency.totalEarned and saved_currency.totalEarned < 8000 then
70+
currency_type = "2"
71+
else currency_type = "0"
72+
end
73+
end
74+
if currency_type == "0" then -- Type-0: [Icon][Quantity]
6875
result = currency.icon..(saved_currency.quantity or "")
6976
elseif currency_type == "1" then -- Type-1: [Icon][Quantity]([Earnable])
7077
local earnable = (saved_currency.totalEarned or 0) - (saved_currency.maxQuantity or 0) -- Earnable is MINUS value

SavedClassic.toc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Interface: 40400
1+
## Interface: 40401
22
## Title: Saved! Classic
3-
## Version: 4.4.0.16
3+
## Version: 4.4.1.0
44
## X-Curse-Project-ID: 357612
55

66
## Notes-koKR: 인스턴스 귀속 정보 및 골드, 경험치 한눈에 보기

0 commit comments

Comments
 (0)