From ed06e234e893c3061ef04d4e018c98117312678a Mon Sep 17 00:00:00 2001 From: Jagget Date: Tue, 6 Feb 2024 18:12:41 -0500 Subject: [PATCH] Potion recipe weight localized Potion recipe weight localized --- .../StringTables/Internal_Strings Shared Data.asset | 4 ++++ Assets/Localization/StringTables/Internal_Strings_en.asset | 4 ++++ Assets/Scripts/Game/Items/ItemHelper.cs | 3 +-- .../Text/Master Localization CSV Files/Internal_Strings.csv | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/Localization/StringTables/Internal_Strings Shared Data.asset b/Assets/Localization/StringTables/Internal_Strings Shared Data.asset index df699b2db2..f47d4231cf 100644 --- a/Assets/Localization/StringTables/Internal_Strings Shared Data.asset +++ b/Assets/Localization/StringTables/Internal_Strings Shared Data.asset @@ -3959,6 +3959,10 @@ MonoBehaviour: m_Key: saveLoadPromptFormat m_Metadata: m_Items: [] + - m_Id: 445752459137302528 + m_Key: potionRecipeWeight + m_Metadata: + m_Items: [] m_Metadata: m_Items: [] m_KeyGenerator: diff --git a/Assets/Localization/StringTables/Internal_Strings_en.asset b/Assets/Localization/StringTables/Internal_Strings_en.asset index 82a2838cf3..625888cabb 100644 --- a/Assets/Localization/StringTables/Internal_Strings_en.asset +++ b/Assets/Localization/StringTables/Internal_Strings_en.asset @@ -5219,5 +5219,9 @@ MonoBehaviour: m_Localized: '{0} for ''{1}''' m_Metadata: m_Items: [] + - m_Id: 445752459137302528 + m_Localized: 'Weight: %kg kilograms' + m_Metadata: + m_Items: [] references: version: 1 diff --git a/Assets/Scripts/Game/Items/ItemHelper.cs b/Assets/Scripts/Game/Items/ItemHelper.cs index 064f0e2705..a021ccfa1e 100644 --- a/Assets/Scripts/Game/Items/ItemHelper.cs +++ b/Assets/Scripts/Game/Items/ItemHelper.cs @@ -856,13 +856,12 @@ private static bool ArmorShouldShowMaterial(DaggerfallUnityItem item) return true; } - // TODO: can this be replaced with a new text RSC entry? private static TextFile.Token[] GetPotionRecipeTokens() { TextFile.Token[] tokens = new TextFile.Token[4]; tokens[0] = TextFile.CreateTextToken(TextManager.Instance.GetLocalizedText("potionRecipeFor")); tokens[1] = TextFile.CreateFormatToken(TextFile.Formatting.JustifyCenter); - tokens[2] = TextFile.CreateTextToken("Weight: %kg kilograms"); + tokens[2] = TextFile.CreateTextToken(TextManager.Instance.GetLocalizedText("potionRecipeWeight")); tokens[3] = TextFile.CreateFormatToken(TextFile.Formatting.JustifyCenter); return tokens; } diff --git a/Assets/StreamingAssets/Text/Master Localization CSV Files/Internal_Strings.csv b/Assets/StreamingAssets/Text/Master Localization CSV Files/Internal_Strings.csv index 4d2019397a..620bf47dcf 100644 --- a/Assets/StreamingAssets/Text/Master Localization CSV Files/Internal_Strings.csv +++ b/Assets/StreamingAssets/Text/Master Localization CSV Files/Internal_Strings.csv @@ -28,6 +28,7 @@ youCollectArrows,You pluck your arrows out of the corpse. loiterHowManyHours,Loiter how many hours : restHowManyHours,Rest how many hours : potionRecipeFor,Recipe for Potion of %po +potionRecipeWeight,Weight: %kg kilograms potionOf,Potion of %po letterPrefix,Letter: multipleAssignments,You have multiple assignments...