hotfixed string support for the english version of a cosmetic set

This commit is contained in:
Asval 2019-09-19 18:27:47 +02:00
parent 8cce7701d6
commit 2d50ee41e7

View File

@ -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<string>(), "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<string>());
}