Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions malverk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down