Improve localization

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

View file

@ -18,5 +18,5 @@
"conflicts": [
"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 {
key = "escapey",
atlas = "janeescapey",
@ -193,17 +207,11 @@ local esc = SMODS.Joker {
return false
end,
Bakery_use_button_text = function(_, 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"
local extra = card.ability.extra
local label = extra.escape_label
extra.escape_label = escapey_button_text(card)
local _ = label ~= extra.escape_label and Bakery_API.rehighlight(card)
return extra.escape_label
end,
Bakery_use_joker = function(self, card)
if card.debuff then

View file

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

View file

@ -183,8 +183,8 @@ SMODS.Consumable {
loc_txt = {
name = "Shadows",
text = {
"Create {C:attention}#1#{} {C:green}random {C:dark_edition}Negative",
"{C:attention}Perishable {C:attention}Jokers{}, set {C:money}sell",
"Create {C:attention}#1#{} random {C:dark_edition}Negative",
"{C:attention}Perishable Jokers{}, set {C:money}sell",
"{C:money}value {}of {C:attention}all Jokers {}to {C:money}$0",
},
},
@ -255,7 +255,7 @@ SMODS.Consumable {
loc_txt = {
name = "Obfuscation",
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}enhancement, and suit)",
},
@ -286,8 +286,8 @@ SMODS.Consumable {
loc_txt = {
name = "Rift",
text = {
"{C:attention}Reset {}your deck to a",
"{C:attention}standard 52-card deck",
"{C:red}Reset {}your deck to a",
"standard 52-card deck",
},
},
pos = {x = 4, y = 4},

View file

@ -100,7 +100,10 @@ for _, v in pairs({
atlas = "janetokens",
loc_txt = {
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, _)
info_queue[#info_queue + 1] = v[1] ~= "tag_cry_cat" and G.P_TAGS[v[1]] or nil