From 2d50ee41e78977df0e41b69d208f320dfb9e7995 Mon Sep 17 00:00:00 2001 From: Asval Date: Thu, 19 Sep 2019 18:27:47 +0200 Subject: [PATCH] hotfixed string support for the english version of a cosmetic set --- FModel/Methods/IconGenerator/ItemGenerator/DrawText.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FModel/Methods/IconGenerator/ItemGenerator/DrawText.cs b/FModel/Methods/IconGenerator/ItemGenerator/DrawText.cs index b71484bd..3d7df7ea 100644 --- a/FModel/Methods/IconGenerator/ItemGenerator/DrawText.cs +++ b/FModel/Methods/IconGenerator/ItemGenerator/DrawText.cs @@ -6,6 +6,7 @@ using System.Drawing; using System.Linq; using System.IO; using System.Collections.Generic; +using FModel.Methods.Serializer.LocRes; namespace FModel { @@ -504,6 +505,10 @@ namespace FModel return string.Format(SearchResource.getTextByKey("CosmeticItemDescription_SetMembership_NotRich", setToken["DisplayName"]["source_string"].Value(), "Fort.Cosmetics"), translatedName); } + else if (HotfixedStrings.HotfixedStringsDict != null && HotfixedStrings.HotfixedStringsDict.ContainsKey(setName + "_DisplayName")) + { + return string.Format("\nPart of the {0} set.", HotfixedStrings.HotfixedStringsDict[setName + "_DisplayName"]["en"]); + } else return string.Format("\nPart of the {0} set.", setToken["DisplayName"]["source_string"].Value()); }