Fix localization
This commit is contained in:
parent
bb05a0512b
commit
cd8bdbd984
2 changed files with 12 additions and 1 deletions
|
|
@ -18,5 +18,5 @@
|
|||
"conflicts": [
|
||||
"Jen"
|
||||
],
|
||||
"version": "1.11.0"
|
||||
"version": "1.11.2"
|
||||
}
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue