Moved the GFB "Rogue" keys to a localization file (#972)

Squashed due to excessive merges in original branch
This commit is contained in:
Zavarski authored and GitHub committed 2024-12-01 12:47:24 -05:00
1 parent 6f4e8869e7
commit 9fc2bc9f01
2 files changed
+12 -3

No files matched your search

+7 -3
View File
@@ -156,10 +156,14 @@ namespace CalamityMod.Items
EnchantmentTooltips(item, tooltips);
// In GFB, replace all instances of "rogue" with "rouge".
if (Main.zenithWorld)
string[] rogueKey = new string[] { CalamityUtils.GetTextValue($"Misc.GFBRogueUppercase"), CalamityUtils.GetTextValue($"Misc.GFBRogueLowercase") };
string[] rougeKey = new string[] { CalamityUtils.GetTextValue($"Misc.GFBRougeUppercase"), CalamityUtils.GetTextValue($"Misc.GFBRougeLowercase") };
for (int n = 0; n < rogueKey.Length; n++)
{
tooltips.FindAndReplace("Rogue", "Rouge");
tooltips.FindAndReplace("rogue", "rouge");
if (Main.zenithWorld && rogueKey[n]!="")
{
tooltips.FindAndReplace(rogueKey[n], rougeKey[n]);
}
}
// Everything below this line can only apply to modded items. If the item is vanilla, stop here for efficiency.
@@ -78,3 +78,8 @@ Polaris5: You pet Polaris
PointBlank: Does extra damage to enemies shot at point-blank range
// Charge
Charge: Current Charge: {0}%
//GFB Rogue Keys
GFBRogueUppercase: Rogue
GFBRougeUppercase: Rouge
GFBRogueLowercase: rogue
GFBRougeLowercase: rouge