Fix localization

This commit is contained in:
Emik 2026-06-28 18:15:55 +02:00
parent bb05a0512b
commit cd8bdbd984
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 12 additions and 1 deletions

View file

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

View file

@ -755,6 +755,17 @@ if Cryptid and Cryptid.aliases then
Cryptid.aliases["the attuned"] = "j_jane_saint"
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 {
key = "rot",
atlas = "janerot",