Improve localization, swap ambience order
This commit is contained in:
parent
cd8bdbd984
commit
8f0c140ba2
5 changed files with 12 additions and 12 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -18,5 +18,5 @@
|
|||
"conflicts": [
|
||||
"Jen"
|
||||
],
|
||||
"version": "1.11.2"
|
||||
"version": "1.11.3"
|
||||
}
|
||||
|
|
@ -796,3 +796,14 @@ SMODS.Joker {
|
|||
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
|
||||
|
|
|
|||
|
|
@ -755,17 +755,6 @@ 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