From 09ca0a1128056c7f9c2d1e9e06947048b15ed794 Mon Sep 17 00:00:00 2001 From: DarkAutumn2618 <5752255+DarkAutumn2618@users.noreply.github.com> Date: Sat, 29 Nov 2025 00:31:07 -0500 Subject: [PATCH] Fix booster pack localization defaults --- malverk.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/malverk.lua b/malverk.lua index 17f95f3..c593bdf 100644 --- a/malverk.lua +++ b/malverk.lua @@ -54,10 +54,18 @@ function Malverk.set_defaults() G[game_table][center].set_card_type_badge = G[game_table][center].default_card_type_badge end - G[game_table][center].default_loc_txt = G[game_table][center].default_loc_txt or copy_table(G.localization.descriptions[AltTextures_Utils.loc_table[texture.set] or texture.set][center .. (texture.set == Seal and '_seal' or '')]) - local default_loc = G[game_table][center].default_loc_txt - SMODS.process_loc_text(G.localization.descriptions[AltTextures_Utils.loc_table[texture.set] or texture.set][center .. (texture.set == Seal and '_seal' or '')], 'name', default_loc, 'name') - SMODS.process_loc_text(G.localization.descriptions[AltTextures_Utils.loc_table[texture.set] or texture.set][center .. (texture.set == Seal and '_seal' or '')], 'text', default_loc, 'text') + if texture.set == 'Booster' then + local temp_center = center:sub(1, -3) + G[game_table][center].default_loc_txt = G[game_table][center].default_loc_txt or copy_table(G.localization.descriptions.Other[temp_center]) + local default_loc = G[game_table][center].default_loc_txt + SMODS.process_loc_text(G.localization.descriptions.Other[temp_center], 'name', default_loc, 'name') + SMODS.process_loc_text(G.localization.descriptions.Other[temp_center], 'text', default_loc, 'text') + else + G[game_table][center].default_loc_txt = G[game_table][center].default_loc_txt or copy_table(G.localization.descriptions[AltTextures_Utils.loc_table[texture.set] or texture.set][center .. (texture.set == Seal and '_seal' or '')]) + local default_loc = G[game_table][center].default_loc_txt + SMODS.process_loc_text(G.localization.descriptions[AltTextures_Utils.loc_table[texture.set] or texture.set][center .. (texture.set == Seal and '_seal' or '')], 'name', default_loc, 'name') + SMODS.process_loc_text(G.localization.descriptions[AltTextures_Utils.loc_table[texture.set] or texture.set][center .. (texture.set == Seal and '_seal' or '')], 'text', default_loc, 'text') + end end end