Improve localization, swap ambience order

This commit is contained in:
Emik 2026-06-29 01:43:03 +02:00
parent cd8bdbd984
commit ae7713770d
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
5 changed files with 12 additions and 12 deletions

Binary file not shown.

Binary file not shown.

View file

@ -18,5 +18,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.11.2" "version": "1.11.3"
} }

View file

@ -796,3 +796,14 @@ SMODS.Joker {
end end
end, end,
} }
local orig_localize = localize
---@diagnostic disable-next-line: lowercase-global
function localize(args, misc_cat, ...)
return ({
j_jane_oxy = "Oxy",
j_jane_honey = "Honey",
j_jane_saint = "The Saint",
})[type(args) == "table" and args.type == "name_text" and args.key] or orig_localize(args, misc_cat, ...)
end

View file

@ -755,17 +755,6 @@ if Cryptid and Cryptid.aliases then
Cryptid.aliases["the attuned"] = "j_jane_saint" Cryptid.aliases["the attuned"] = "j_jane_saint"
end end
local orig_localize = localize
---@diagnostic disable-next-line: lowercase-global
function localize(args, misc_cat, ...)
local is_saint = type(args) == "table" and
args.type == "name_text" and
args.key == "j_jane_saint"
return is_saint and "The Saint" or orig_localize(args, misc_cat, ...)
end
SMODS.Joker { SMODS.Joker {
key = "rot", key = "rot",
atlas = "janerot", atlas = "janerot",