From 0e47de546b0f66a50cd61de6ddc0f490b3ddbc1c Mon Sep 17 00:00:00 2001 From: Emik Date: Wed, 17 Jun 2026 12:43:03 +0200 Subject: [PATCH] Improve localization --- manifest.json | 2 +- src/joker.lua | 30 +++++++++++++++++++----------- src/slugcat.lua | 11 +++++------ src/spectral.lua | 10 +++++----- src/token.lua | 5 ++++- 5 files changed, 34 insertions(+), 24 deletions(-) diff --git a/manifest.json b/manifest.json index 30e1c23..81df0fe 100644 --- a/manifest.json +++ b/manifest.json @@ -18,5 +18,5 @@ "conflicts": [ "Jen" ], - "version": "1.8.2" + "version": "1.8.3" } \ No newline at end of file diff --git a/src/joker.lua b/src/joker.lua index 44559e0..b57c27f 100644 --- a/src/joker.lua +++ b/src/joker.lua @@ -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 diff --git a/src/slugcat.lua b/src/slugcat.lua index 0b2d0e9..0bf50cd 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -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}, diff --git a/src/spectral.lua b/src/spectral.lua index 408ebe6..cc915b2 100644 --- a/src/spectral.lua +++ b/src/spectral.lua @@ -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}, diff --git a/src/token.lua b/src/token.lua index b3d263d..204bdfd 100644 --- a/src/token.lua +++ b/src/token.lua @@ -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