Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potion recipe weight localized #2577

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions Assets/Localization/StringTables/Internal_Strings_en.asset
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions Assets/Scripts/Game/Items/ItemHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down