Skip to content

Commit

Permalink
Reverse outdated skin display
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius7309 committed Feb 4, 2025
1 parent 1189481 commit 2be7a62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,13 @@ G.FUNCS.update_collab_cards = function(key, suit, silent)
local palette = deckskin.palette_map and deckskin.palette_map[G.SETTINGS.colour_palettes[suit] or ''] or (deckskin.palettes or {})[1]
local suit_data = SMODS.Suits[suit]
local d_ranks = (palette and (palette.display_ranks or palette.ranks)) or deckskin.display_ranks or deckskin.ranks
if deckskin.outdated then
local reversed = {}
for i = #d_ranks, 1, -1 do
table.insert(reversed, d_ranks[i])
end
d_ranks = reversed
end

local diff_order
if #G.cdds_cards.cards ~= #d_ranks then
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return "1.0.0~ALPHA-1404e-STEAMODDED"
return "1.0.0~ALPHA-1404f-STEAMODDED"

0 comments on commit 2be7a62

Please sign in to comment.