From cd8bdbd984134c5d47711ccd5bb512d5a8348095 Mon Sep 17 00:00:00 2001 From: Emik Date: Sun, 28 Jun 2026 18:15:55 +0200 Subject: [PATCH] Fix localization --- manifest.json | 2 +- src/slugcat.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index ce44c09..b4878a5 100644 --- a/manifest.json +++ b/manifest.json @@ -18,5 +18,5 @@ "conflicts": [ "Jen" ], - "version": "1.11.0" + "version": "1.11.2" } \ No newline at end of file diff --git a/src/slugcat.lua b/src/slugcat.lua index c211b13..708e988 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -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",