diff --git a/FModel/Creator/Bases/FN/BaseIcon.cs b/FModel/Creator/Bases/FN/BaseIcon.cs index 2d4d4f68..20ed2a65 100644 --- a/FModel/Creator/Bases/FN/BaseIcon.cs +++ b/FModel/Creator/Bases/FN/BaseIcon.cs @@ -257,28 +257,19 @@ public class BaseIcon : UCreator var season = Utils.GetLocalizedResource("AthenaSeasonItemDefinitionInternal", "SeasonTextFormat", "Season {0}"); var introduced = Utils.GetLocalizedResource("Fort.Cosmetics", "CosmeticItemDescription_Season", "\nIntroduced in {0}."); - if (s == "10") - { - return Utils.RemoveHtmlTags(string.Format(introduced, string.Format(season, "X"))); - } + if (s == "10") return Utils.RemoveHtmlTags(string.Format(introduced, string.Format(season, "X"))); if (initial <= 10) return Utils.RemoveHtmlTags(string.Format(introduced, string.Format(season, s))); var chapter = Utils.GetLocalizedResource("AthenaSeasonItemDefinitionInternal", "ChapterTextFormat", "Chapter {0}"); var chapterFormat = Utils.GetLocalizedResource("AthenaSeasonItemDefinitionInternal", "ChapterSeasonTextFormat", "{0}, {1}"); var d = string.Format(chapterFormat, string.Format(chapter, chapterIdx), string.Format(season, seasonIdx)); - if (s == "27") - { - return Utils.RemoveHtmlTags(string.Format(introduced, string.Format(chapterFormat, string.Format(chapter, chapterIdx), string.Format(season, "OG")))); - } - if (s == "32") - { - return Utils.RemoveHtmlTags(string.Format(introduced, string.Format(chapterFormat, string.Format(chapter, chapterIdx), string.Format(season, "Remix")))); - } - if (s == "35") - { - return Utils.RemoveHtmlTags(string.Format(introduced, string.Format(chapterFormat, string.Format(chapter, chapterIdx), string.Format(season, "MS1")))); - } - return Utils.RemoveHtmlTags(string.Format(introduced, d)); + return s switch + { + "27" => Utils.RemoveHtmlTags(string.Format(introduced, string.Format("Fortnite: OG"))), + "32" => Utils.RemoveHtmlTags(string.Format(introduced, string.Format("Fortnite: Remix"))), + "35" => Utils.RemoveHtmlTags(string.Format(introduced, string.Format(chapterFormat, string.Format(chapter, chapterIdx), string.Format("MS1")))), + _ => Utils.RemoveHtmlTags(string.Format(introduced, d)) + }; } protected void CheckGameplayTags(FInstancedStruct[] dataList)