Skip to content

Commit 9561c74

Browse files
committed
Fix Fissure Stone typo, Auto-style condition
Fix Fissure Stone Fragment type - It's "FS" Condition 1) Currency has maximum amount and 2) Earnable <= 1600 or 3) Total earned < 9000 and Max < 10000 then Type-2, else Type-0. Valor max. grows 1600 per week Conqeust max. grows 4000 per week
1 parent 619ae46 commit 9561c74

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

Core.lua

+15-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,21 @@ local _TranslationTable = {
6565
saved_currency.quantity = saved_currency.quantity or saved_currency.total -- For compatibility
6666
saved_currency.total = nil
6767
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"
68+
-- Auto-style : Condition for display earnable amount(maximum - earned)
69+
-- 1) Currency has maximum amount
70+
-- and 2) Earnable <= 1600
71+
-- or 3) Total earned < 9000 and Max < 10000
72+
-- then Type-2 else Type-0
73+
currency_type = "0"
74+
if saved_currency.maxQuantity and saved_currency.maxQuantity > 0 then
75+
local maxQuantity = saved_currency.maxQuantity or 0
76+
local totalEarned = saved_currency.totalEarned or 0
77+
local earnable = maxQuantity - totalEarned
78+
79+
if (earnable <= 1600 and earnable >= 0)
80+
or (totalEarned < 9000 and maxQuantity < 10000) then
81+
currency_type = "2"
82+
end
7283
end
7384
end
7485
if currency_type == "0" then -- Type-0: [Icon][Quantity]

Data.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SavedClassic.currencies = {
3838
[390] = { altName = L["conquest"] }, -- 4.0.1 PvP Conquest Point
3939
[614] = { altName = L["MOD" ] }, -- 4.3.4 Cataclysm Mote of Darkness
4040
[615] = { altName = L["EOC" ] }, -- 4.3.4 Cataclysm Essence of Corrupted Deathwing
41-
[3148]= { altName = L["FSF" ] }, -- 4.4.1 Cataclysm Elemental Rune Dungeon - Protocol Inferno
41+
[3148]= { altName = L["FS" ] }, -- 4.4.1 Cataclysm Elemental Rune Dungeon - Protocol Inferno
4242
[416] = { altName = L["MOW" ] }, -- 4.3.4 Cataclysm Mark of the World Tree
4343
[361] = { altName = L["jewel" ] }, -- 4.0.1 Cataclysm Illustrious Jewelcrafter's Token
4444
[402] = { altName = L["cook" ] }, -- 4.3.4 Misc. Chef's Award

SavedClassic.toc

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

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

0 commit comments

Comments
 (0)