From 5532ecc0d8337362b262e5bd35efdd062cbf7ef9 Mon Sep 17 00:00:00 2001 From: SillyStar-Github <90102598+SillyStar-Github@users.noreply.github.com> Date: Sun, 25 Jan 2026 02:08:26 -0500 Subject: [PATCH] starbound difficulty text code --- MelonLoader/Patches/GameObjects/AdvantureMenu_Patch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MelonLoader/Patches/GameObjects/AdvantureMenu_Patch.cs b/MelonLoader/Patches/GameObjects/AdvantureMenu_Patch.cs index e956db4..de0459d 100644 --- a/MelonLoader/Patches/GameObjects/AdvantureMenu_Patch.cs +++ b/MelonLoader/Patches/GameObjects/AdvantureMenu_Patch.cs @@ -45,7 +45,8 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects public static void TranslateAdvantureMenu(AdvantureMenu __instance) { - __instance.difficulty.text = Utils.RemoveSizeTags(StringStore.TranslateText(__instance.difficulty.text)); + bool hasSBString = StringStore.translationString.ContainsKey(__instance.difficulty.text + "_SB"); + __instance.difficulty.text = Utils.RemoveSizeTags(hasSBString ? StringStore.TranslateText(__instance.difficulty.text + "_SB") : StringStore.TranslateText(__instance.difficulty.text)); __instance.chapterDifficulty.text = StringStore.TranslateText(__instance.chapterDifficulty.text); __instance.starCount.text = StringStore.TranslateText(__instance.starCount.text);