Skip to content

Commit

Permalink
Fix Fissure Stone typo, Auto-style condition
Browse files Browse the repository at this point in the history
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
  • Loading branch information
iambz00 committed Oct 31, 2024
1 parent 619ae46 commit 9561c74
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
19 changes: 15 additions & 4 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion Data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SavedClassic.toc
Original file line number Diff line number Diff line change
@@ -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: 인스턴스 귀속 정보 및 골드, 경험치 한눈에 보기
Expand Down

0 comments on commit 9561c74

Please sign in to comment.