diff --git a/Core.lua b/Core.lua index 780aab4..8b02f85 100644 --- a/Core.lua +++ b/Core.lua @@ -65,10 +65,21 @@ local _TranslationTable = { saved_currency.quantity = saved_currency.quantity or saved_currency.total -- For compatibility saved_currency.total = nil if not currency_type or currency_type == "" then - -- Earnable amount is shown when total earned amount is under 8000 - if saved_currency.totalEarned and saved_currency.totalEarned < 8000 then - currency_type = "2" - else currency_type = "0" + -- Auto-style : Condition for display earnable amount(maximum - earned) + -- 1) Currency has maximum amount + -- and 2) Earnable <= 1600 + -- or 3) Total earned < 9000 and Max < 10000 + -- then Type-2 else Type-0 + currency_type = "0" + if saved_currency.maxQuantity and saved_currency.maxQuantity > 0 then + local maxQuantity = saved_currency.maxQuantity or 0 + local totalEarned = saved_currency.totalEarned or 0 + local earnable = maxQuantity - totalEarned + + if (earnable <= 1600 and earnable >= 0) + or (totalEarned < 9000 and maxQuantity < 10000) then + currency_type = "2" + end end end if currency_type == "0" then -- Type-0: [Icon][Quantity] diff --git a/Data.lua b/Data.lua index e9e2181..432562d 100644 --- a/Data.lua +++ b/Data.lua @@ -38,7 +38,7 @@ SavedClassic.currencies = { [390] = { altName = L["conquest"] }, -- 4.0.1 PvP Conquest Point [614] = { altName = L["MOD" ] }, -- 4.3.4 Cataclysm Mote of Darkness [615] = { altName = L["EOC" ] }, -- 4.3.4 Cataclysm Essence of Corrupted Deathwing - [3148]= { altName = L["FSF" ] }, -- 4.4.1 Cataclysm Elemental Rune Dungeon - Protocol Inferno + [3148]= { altName = L["FS" ] }, -- 4.4.1 Cataclysm Elemental Rune Dungeon - Protocol Inferno [416] = { altName = L["MOW" ] }, -- 4.3.4 Cataclysm Mark of the World Tree [361] = { altName = L["jewel" ] }, -- 4.0.1 Cataclysm Illustrious Jewelcrafter's Token [402] = { altName = L["cook" ] }, -- 4.3.4 Misc. Chef's Award diff --git a/SavedClassic.toc b/SavedClassic.toc index 2e0b195..4a234ca 100755 --- a/SavedClassic.toc +++ b/SavedClassic.toc @@ -1,6 +1,6 @@ ## Interface: 40401 ## Title: Saved! Classic -## Version: 4.4.1.1 +## Version: 4.4.1.2 ## X-Curse-Project-ID: 357612 ## Notes-koKR: 인스턴스 귀속 정보 및 골드, 경험치 한눈에 보기