Improve localization

This commit is contained in:
Emik 2026-06-17 12:43:03 +02:00
parent 70895b77e8
commit 00b113b16d
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
5 changed files with 34 additions and 24 deletions

View file

@ -18,5 +18,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.8.2" "version": "1.8.3"
} }

View file

@ -138,6 +138,20 @@ local escapey_quotes = {
}, },
} }
local function escapey_button_text(card)
if card.debuff then
return "DEBUFFED"
end
for _, v in ipairs(G.consumeables.cards) do
if destructible(v) then
return "CONSUME"
end
end
return "ESCAPE"
end
local esc = SMODS.Joker { local esc = SMODS.Joker {
key = "escapey", key = "escapey",
atlas = "janeescapey", atlas = "janeescapey",
@ -193,17 +207,11 @@ local esc = SMODS.Joker {
return false return false
end, end,
Bakery_use_button_text = function(_, card) Bakery_use_button_text = function(_, card)
if card.debuff then local extra = card.ability.extra
return "DEBUFFED" local label = extra.escape_label
end extra.escape_label = escapey_button_text(card)
local _ = label ~= extra.escape_label and Bakery_API.rehighlight(card)
for _, v in ipairs(G.consumeables.cards) do return extra.escape_label
if destructible(v) then
return "CONSUME"
end
end
return "ESCAPE"
end, end,
Bakery_use_joker = function(self, card) Bakery_use_joker = function(self, card)
if card.debuff then if card.debuff then

View file

@ -148,10 +148,9 @@ SMODS.Joker {
loc_txt = { loc_txt = {
name = "The Hunter", name = "The Hunter",
text = { text = {
"{E:1}Succumbs to the", "{E:1}Succumbs to the {X:black,C:white,E:1}Rot{},",
"{X:black,C:white,E:1}Rot{}, creating", (Jane.cry and "creating an {C:spectral}Empowered" or "creating a {C:dark_edition}Negative"),
(Jane.cry and "an {C:spectral}Empowered Tag" or "a {C:dark_edition}Negative {C:spectral}Soul"), (Jane.cry and "{C:spectral}Tag" or "{C:spectral}Soul") .. " {}after #1#",
"after #1#",
}, },
}, },
config = {extra = {rounds_left = hunter[1]}}, config = {extra = {rounds_left = hunter[1]}},
@ -522,8 +521,8 @@ SMODS.Joker {
loc_txt = { loc_txt = {
name = "The Rivulet", name = "The Rivulet",
text = { text = {
"Non-{C:dark_edition}editioned{} cards are", "All cards are given",
"given a random {C:dark_edition}Edition", "a random {C:dark_edition}Edition",
}, },
}, },
pos = {x = 0, y = 0}, pos = {x = 0, y = 0},

View file

@ -183,8 +183,8 @@ SMODS.Consumable {
loc_txt = { loc_txt = {
name = "Shadows", name = "Shadows",
text = { text = {
"Create {C:attention}#1#{} {C:green}random {C:dark_edition}Negative", "Create {C:attention}#1#{} random {C:dark_edition}Negative",
"{C:attention}Perishable {C:attention}Jokers{}, set {C:money}sell", "{C:attention}Perishable Jokers{}, set {C:money}sell",
"{C:money}value {}of {C:attention}all Jokers {}to {C:money}$0", "{C:money}value {}of {C:attention}all Jokers {}to {C:money}$0",
}, },
}, },
@ -255,7 +255,7 @@ SMODS.Consumable {
loc_txt = { loc_txt = {
name = "Obfuscation", name = "Obfuscation",
text = { text = {
"{C:green,E:1}Randomises{} all cards in hand", "{C:green,E:1}Randomizes{} all cards in hand",
"{C:inactive}(Rank, seal, edition,", "{C:inactive}(Rank, seal, edition,",
"{C:inactive}enhancement, and suit)", "{C:inactive}enhancement, and suit)",
}, },
@ -286,8 +286,8 @@ SMODS.Consumable {
loc_txt = { loc_txt = {
name = "Rift", name = "Rift",
text = { text = {
"{C:attention}Reset {}your deck to a", "{C:red}Reset {}your deck to a",
"{C:attention}standard 52-card deck", "standard 52-card deck",
}, },
}, },
pos = {x = 4, y = 4}, pos = {x = 4, y = 4},

View file

@ -100,7 +100,10 @@ for _, v in pairs({
atlas = "janetokens", atlas = "janetokens",
loc_txt = { loc_txt = {
name = v[2] .. " Token", name = v[2] .. " Token",
text = {"Creates a" .. (vowels[v[2]:sub(1, 1)] and "n" or "") .. " {C:attention}" .. v[2] .. " Tag"}, text = {
"Creates a" .. (vowels[v[2]:sub(1, 1)] and "n" or ""),
"{C:attention}" .. v[2] .. " Tag",
},
}, },
loc_vars = function(_, info_queue, _) loc_vars = function(_, info_queue, _)
info_queue[#info_queue + 1] = v[1] ~= "tag_cry_cat" and G.P_TAGS[v[1]] or nil info_queue[#info_queue + 1] = v[1] ~= "tag_cry_cat" and G.P_TAGS[v[1]] or nil