diff --git a/Cooldowns/AquaticHeartIceShield.cs b/Cooldowns/AquaticHeartIceShield.cs
index f047853416..ee22188cbd 100644
--- a/Cooldowns/AquaticHeartIceShield.cs
+++ b/Cooldowns/AquaticHeartIceShield.cs
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using System;
using Terraria;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -8,7 +9,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "AquaticHeartIceShield";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Ice Shield Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/AquaticHeartIceShield";
public override Color OutlineColor => Color.Lerp(new Color(163, 186, 198), new Color(146, 187, 255), (float)Math.Sin(Main.GlobalTimeWrappedHourly) * 0.5f + 0.5f);
public override Color CooldownStartColor => new Color(124, 195, 214);
diff --git a/Cooldowns/BloodflareFrenzy.cs b/Cooldowns/BloodflareFrenzy.cs
index 8a1ac1191f..7267ab43a4 100644
--- a/Cooldowns/BloodflareFrenzy.cs
+++ b/Cooldowns/BloodflareFrenzy.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "BloodflareFrenzy";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Blood Frenzy Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/BloodflareFrenzy";
public override Color OutlineColor => new Color(229, 171, 124);
public override Color CooldownStartColor => Color.Lerp(new Color(149, 127, 109), new Color(220, 101, 101), 1 - instance.Completion);
diff --git a/Cooldowns/BloodflareRangedSet.cs b/Cooldowns/BloodflareRangedSet.cs
index f9761b2fb7..72cea81d82 100644
--- a/Cooldowns/BloodflareRangedSet.cs
+++ b/Cooldowns/BloodflareRangedSet.cs
@@ -1,5 +1,6 @@
using Microsoft.Xna.Framework;
using Terraria.Audio;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -7,7 +8,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "BloodflareRangedSet";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Bloodflare Soul Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/BloodflareRangedSet";
public override Color OutlineColor => new Color(255, 205, 219);
public override Color CooldownStartColor => new Color(216, 60, 90);
diff --git a/Cooldowns/BrimflameFrenzy.cs b/Cooldowns/BrimflameFrenzy.cs
index 716a66cb9f..888abe43b9 100644
--- a/Cooldowns/BrimflameFrenzy.cs
+++ b/Cooldowns/BrimflameFrenzy.cs
@@ -2,6 +2,7 @@
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
+using Terraria.Localization;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Cooldowns
@@ -10,7 +11,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "BrimflameFrenzy";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Brimflame Frenzy Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/BrimflameFrenzy";
public override Color OutlineColor => new Color(211, 124, 93);
public override Color CooldownStartColor => Color.Lerp(new Color(107, 6, 6), new Color(228, 78, 78), 1 - instance.Completion);
diff --git a/Cooldowns/ChaosState.cs b/Cooldowns/ChaosState.cs
index 2fb77eec7d..4759b9b42c 100644
--- a/Cooldowns/ChaosState.cs
+++ b/Cooldowns/ChaosState.cs
@@ -1,5 +1,6 @@
using Microsoft.Xna.Framework;
using Terraria.Audio;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -8,7 +9,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "ChaosState";
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.chaosState;
- public override string DisplayName => "Teleportation Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ChaosState" + skinTexture;
public override Color OutlineColor => outlineColor;
public override Color CooldownStartColor => Color.Lerp(cooldownColorStart, cooldownColorEnd, 1 - instance.Completion);
diff --git a/Cooldowns/CooldownHandler.cs b/Cooldowns/CooldownHandler.cs
index 17aca1677f..4fe1a63e97 100644
--- a/Cooldowns/CooldownHandler.cs
+++ b/Cooldowns/CooldownHandler.cs
@@ -2,6 +2,7 @@
using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
+using Terraria.Localization;
using Terraria.Audio;
using Terraria.Graphics.Shaders;
using Terraria.ModLoader;
@@ -54,7 +55,7 @@ namespace CalamityMod.Cooldowns
///
/// The name of the cooldown instance, appears when the player hovers over the indicator
///
- public virtual string DisplayName => "";
+ public virtual LocalizedText DisplayName => LocalizedText.Empty;
///
/// Whether or not this cooldown instance should appear in the cooldown rack UI.
diff --git a/Cooldowns/CounterScarf.cs b/Cooldowns/CounterScarf.cs
index 480808be90..133a2ee36f 100644
--- a/Cooldowns/CounterScarf.cs
+++ b/Cooldowns/CounterScarf.cs
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using System;
using Terraria;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -9,7 +10,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "CounterScarf";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Scarf Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/CounterScarf";
public override Color OutlineColor => Color.Lerp(new Color(255, 115, 178), new Color(255, 76, 76), (float)Math.Sin(Main.GlobalTimeWrappedHourly * 2f) * 0.5f + 0.5f);
public override Color CooldownStartColor => new Color(194, 75, 97);
diff --git a/Cooldowns/DivineBless.cs b/Cooldowns/DivineBless.cs
index ffcfa9c772..4c7acd8641 100644
--- a/Cooldowns/DivineBless.cs
+++ b/Cooldowns/DivineBless.cs
@@ -2,6 +2,7 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
+using Terraria.Localization;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Cooldowns
@@ -10,7 +11,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "DivineBless";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Divine Bless Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/DivineBless";
public override Color OutlineColor => new Color(233, 192, 68);
public override Color CooldownStartColor => new Color(177, 105, 33);
diff --git a/Cooldowns/DivingSuitCooldowns.cs b/Cooldowns/DivingSuitCooldowns.cs
index ef3f608787..9895bc155e 100644
--- a/Cooldowns/DivingSuitCooldowns.cs
+++ b/Cooldowns/DivingSuitCooldowns.cs
@@ -2,6 +2,7 @@
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
+using Terraria.Localization;
using static CalamityMod.CalamityUtils;
using static Terraria.ModLoader.ModContent;
@@ -18,7 +19,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "DivingPlatesBreaking";
public override bool CanTickDown => !instance.player.Calamity().abyssalDivingSuit;
public override bool ShouldDisplay => instance.player.Calamity().abyssalDivingSuit;
- public override string DisplayName => "Abyssal Diving Suit Plates Durability";
+ public override LocalizedText DisplayName => GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/DivingSuitBreakingPlates";
public override string OutlineTexture => "CalamityMod/Cooldowns/DivingSuitBrokenPlatesOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/DivingSuitBrokenPlatesOverlay";
@@ -57,7 +58,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "DivingPlatesBroken";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Abyssal Diving Suit Broken Plates";
+ public override LocalizedText DisplayName => GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/DivingSuitBrokenPlates";
public override Color OutlineColor => new Color(194, 173, 146);
public override Color CooldownStartColor => Color.Lerp(ringColorLerpStart, ringColorLerpEnd, instance.Completion);
diff --git a/Cooldowns/EvasionScarf.cs b/Cooldowns/EvasionScarf.cs
index 03c452e3c0..27a0ffbc89 100644
--- a/Cooldowns/EvasionScarf.cs
+++ b/Cooldowns/EvasionScarf.cs
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using System;
using Terraria;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -8,7 +9,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "EvasionScarf";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Scarf Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/EvasionScarf";
public override Color OutlineColor => Color.Lerp(new Color(255, 194, 150), new Color(255, 160, 150), (float)Math.Sin(Main.GlobalTimeWrappedHourly * 2f) * 0.5f + 0.5f);
public override Color CooldownStartColor => new Color(132, 23, 32);
diff --git a/Cooldowns/FleshTotem.cs b/Cooldowns/FleshTotem.cs
index 5017618e7b..ef26722a05 100644
--- a/Cooldowns/FleshTotem.cs
+++ b/Cooldowns/FleshTotem.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -7,7 +8,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "FleshTotem";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Contact Damage Halving Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/" + skinTexture;
public override Color OutlineColor => outlineColor;
public override Color CooldownStartColor => cooldownColorStart;
diff --git a/Cooldowns/GlobalDodge.cs b/Cooldowns/GlobalDodge.cs
index 531ec92aba..a50209631a 100644
--- a/Cooldowns/GlobalDodge.cs
+++ b/Cooldowns/GlobalDodge.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -7,7 +8,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "GlobalDodge";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Dodge Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/" + skinTexture;
public override Color OutlineColor => outlineColor;
public override Color CooldownStartColor => cooldownColorStart;
diff --git a/Cooldowns/GodSlayerDash.cs b/Cooldowns/GodSlayerDash.cs
index debdec7110..40c6518184 100644
--- a/Cooldowns/GodSlayerDash.cs
+++ b/Cooldowns/GodSlayerDash.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "GodSlayerDash";
public override bool ShouldDisplay => true;
- public override string DisplayName => "God Slayer Dash Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/GodSlayerDash";
public override Color OutlineColor => Color.Lerp(new Color(173, 66, 203), new Color(252, 109, 202), instance.Completion);
public override Color CooldownStartColor => new Color(252, 109, 202);
diff --git a/Cooldowns/InkBomb.cs b/Cooldowns/InkBomb.cs
index 18eadd5b89..7a87da86aa 100644
--- a/Cooldowns/InkBomb.cs
+++ b/Cooldowns/InkBomb.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "InkBomb";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Ink Bomb Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/InkBomb";
public override Color OutlineColor => new Color(205, 182, 137);
public override Color CooldownStartColor => Color.Lerp(new Color(177, 147, 89), new Color(105, 103, 126), instance.Completion);
diff --git a/Cooldowns/LifeSteal.cs b/Cooldowns/LifeSteal.cs
index 0cb11b571e..2e7c6fe571 100644
--- a/Cooldowns/LifeSteal.cs
+++ b/Cooldowns/LifeSteal.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "LifeSteal";
public override bool ShouldDisplay => instance.player.lifeSteal < 0f;
- public override string DisplayName => "Life Steal Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/LifeSteal";
public override Color OutlineColor => new Color(255, 142, 165);
public override Color CooldownStartColor => Color.Lerp(new Color(255, 216, 216), new Color(255, 117, 117), instance.Completion);
diff --git a/Cooldowns/LionHeartShield.cs b/Cooldowns/LionHeartShield.cs
index 48a8c375dd..2981989512 100644
--- a/Cooldowns/LionHeartShield.cs
+++ b/Cooldowns/LionHeartShield.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "LionHeartShield";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Energy Shell Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/LionHeartShield";
public override Color OutlineColor => new Color(232, 239, 239);
public override Color CooldownStartColor => new Color(17, 242, 244);
diff --git a/Cooldowns/NebulousCore.cs b/Cooldowns/NebulousCore.cs
index 8b5d321d65..fe864216f1 100644
--- a/Cooldowns/NebulousCore.cs
+++ b/Cooldowns/NebulousCore.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "NebulousCore";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Nebulous Core Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/NebulousCore";
public override Color OutlineColor => Color.Lerp(new Color(252, 109, 203), new Color(58, 91, 146), instance.Completion);
public override Color CooldownStartColor => new Color(148, 62, 216);
diff --git a/Cooldowns/OmegaBlue.cs b/Cooldowns/OmegaBlue.cs
index 092bac2d28..3b564fa1a5 100644
--- a/Cooldowns/OmegaBlue.cs
+++ b/Cooldowns/OmegaBlue.cs
@@ -4,6 +4,7 @@ using System;
using Terraria;
using Terraria.Audio;
using Terraria.Graphics.Shaders;
+using Terraria.Localization;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Cooldowns
@@ -12,7 +13,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "OmegaBlue";
public override bool ShouldDisplay => true;
- public override string DisplayName => instance.timeLeft > 1500 ? "Abyssal Madness" : "Abyssal Madness Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText("UI.Cooldowns.OmegaBlue" + (instance.timeLeft > 1500 ? "Active" : "Cooldown"));
public override string Texture => instance.timeLeft > 1500 ? "CalamityMod/Cooldowns/OmegaBlueActive" : "CalamityMod/Cooldowns/OmegaBlue";
public override string OutlineTexture => "CalamityMod/Cooldowns/OmegaBlueOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/OmegaBlueOverlay";
diff --git a/Cooldowns/PermafrostConcoction.cs b/Cooldowns/PermafrostConcoction.cs
index d70268ba8f..656cb6ce18 100644
--- a/Cooldowns/PermafrostConcoction.cs
+++ b/Cooldowns/PermafrostConcoction.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "PermafrostConcoction";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Permafrost's Concoction Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/PermafrostConcoction";
public override Color OutlineColor => new Color(0, 218, 255);
public override Color CooldownStartColor => new Color(144, 184, 205);
diff --git a/Cooldowns/PlagueBlackout.cs b/Cooldowns/PlagueBlackout.cs
index 57fd6eac56..5bf62e24e6 100644
--- a/Cooldowns/PlagueBlackout.cs
+++ b/Cooldowns/PlagueBlackout.cs
@@ -4,6 +4,7 @@ using System;
using Terraria;
using Terraria.Audio;
using Terraria.Graphics.Shaders;
+using Terraria.Localization;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Cooldowns
@@ -12,7 +13,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "PlagueBlackout";
public override bool ShouldDisplay => instance.timeLeft <= 1500;
- public override string DisplayName => "Plague Blackout Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/PlagueBlackout";
public override Color OutlineColor => new Color(174, 237, 122);
public override Color CooldownStartColor => Color.DarkSlateGray;
diff --git a/Cooldowns/PotionSickness.cs b/Cooldowns/PotionSickness.cs
index 2c512ba629..2127706e4e 100644
--- a/Cooldowns/PotionSickness.cs
+++ b/Cooldowns/PotionSickness.cs
@@ -1,5 +1,6 @@
using Microsoft.Xna.Framework;
using Terraria.Audio;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -7,7 +8,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "PotionSickness";
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.potionDelay > 0;
- public override string DisplayName => "Healing Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/PotionSickness";
public override Color OutlineColor => new Color(255, 142, 165);
public override Color CooldownStartColor => Color.Lerp(new Color(208, 234, 255), new Color(231, 3, 54), instance.Completion);
diff --git a/Cooldowns/PrismaticLaser.cs b/Cooldowns/PrismaticLaser.cs
index 5a15763077..2e8ba2334b 100644
--- a/Cooldowns/PrismaticLaser.cs
+++ b/Cooldowns/PrismaticLaser.cs
@@ -1,5 +1,6 @@
using Microsoft.Xna.Framework;
using Terraria;
+using Terraria.Localization;
using static CalamityMod.CalamityUtils;
namespace CalamityMod.Cooldowns
@@ -8,7 +9,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "PrismaticLaser";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Prismatic Laser Barrage Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/PrismaticLaser";
public override Color OutlineColor => rainbowMode;
public override Color CooldownStartColor => rainbowMode;
diff --git a/Cooldowns/ProfanedSoulArtifact.cs b/Cooldowns/ProfanedSoulArtifact.cs
index 9d08a8b25e..dc672a0d47 100644
--- a/Cooldowns/ProfanedSoulArtifact.cs
+++ b/Cooldowns/ProfanedSoulArtifact.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "ProfanedSoulArtifact";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Profaned Soul Artifact Burnout";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ProfanedSoulArtifact";
public override Color OutlineColor => new Color(255, 191, 73);
public override Color CooldownStartColor => new Color(181, 136, 177);
diff --git a/Cooldowns/RelicOfResilience.cs b/Cooldowns/RelicOfResilience.cs
index d25ba1d9fe..fe76048f4e 100644
--- a/Cooldowns/RelicOfResilience.cs
+++ b/Cooldowns/RelicOfResilience.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "RelicOfResilience";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Relic of Resilience Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/RelicOfResilience";
public override Color OutlineColor => new Color(255, 191, 73);
public override Color CooldownStartColor => new Color(122, 66, 59);
diff --git a/Cooldowns/RogueBooster.cs b/Cooldowns/RogueBooster.cs
index 86cfe1e6e6..74dc507056 100644
--- a/Cooldowns/RogueBooster.cs
+++ b/Cooldowns/RogueBooster.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -7,7 +8,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "RogueBooster";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Rogue Booster Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/" + skinTexture;
public override Color OutlineColor => outlineColor;
public override Color CooldownStartColor => Color.Lerp(cooldownColorStart, cooldownColorEnd, 1 - instance.Completion);
diff --git a/Cooldowns/SandCloak.cs b/Cooldowns/SandCloak.cs
index 0168f43fe3..b346b7fe2e 100644
--- a/Cooldowns/SandCloak.cs
+++ b/Cooldowns/SandCloak.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "SandCloak";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Sand Cloak Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/SandCloak";
public override Color OutlineColor => new Color(209, 176, 114);
public override Color CooldownStartColor => new Color(100, 64, 44);
diff --git a/Cooldowns/SandsmokeBomb.cs b/Cooldowns/SandsmokeBomb.cs
index 52685ba685..730ca12fa7 100644
--- a/Cooldowns/SandsmokeBomb.cs
+++ b/Cooldowns/SandsmokeBomb.cs
@@ -4,6 +4,7 @@ using System;
using Terraria;
using Terraria.Audio;
using Terraria.Graphics.Shaders;
+using Terraria.Localization;
using static Terraria.ModLoader.ModContent;
using CalamityMod.Items.Armor.DesertProwler;
using CalamityMod.Particles;
@@ -19,7 +20,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "SandsmokeBomb";
public override bool ShouldDisplay => true;
- public override string DisplayName => PowerActive ? "Sandsmoke Bomb Duration" : "Sandsmoke Bomb Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText("UI.Cooldowns.SandsmokeBomb" + (PowerActive ? "Active" : "Cooldown"));
public override string Texture => "CalamityMod/Cooldowns/SandsmokeBomb";
public override string OutlineTexture => "CalamityMod/Cooldowns/SandsmokeBombOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/SandsmokeBombOverlay";
diff --git a/Cooldowns/SilvaRevive.cs b/Cooldowns/SilvaRevive.cs
index 73e5990c26..465b4b2602 100644
--- a/Cooldowns/SilvaRevive.cs
+++ b/Cooldowns/SilvaRevive.cs
@@ -1,5 +1,6 @@
using CalamityMod.CalPlayer;
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -7,7 +8,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "SilvaRevive";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Silva Revive Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/SilvaRevive";
public override Color OutlineColor => new Color(151, 211, 152);
public override Color CooldownStartColor => new Color(226, 188, 74);
diff --git a/Cooldowns/TarragonCloak.cs b/Cooldowns/TarragonCloak.cs
index 7dfbe6f059..e1068f2e49 100644
--- a/Cooldowns/TarragonCloak.cs
+++ b/Cooldowns/TarragonCloak.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "TarragonCloak";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Tarragon Cloak Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/TarragonCloak";
public override Color OutlineColor => new Color(158, 204, 173);
public override Color CooldownStartColor => Color.Lerp(new Color(171, 106, 49), new Color(215, 182, 82), 1 - instance.Completion);
diff --git a/Cooldowns/TarragonImmunity.cs b/Cooldowns/TarragonImmunity.cs
index c16888c257..841798cf71 100644
--- a/Cooldowns/TarragonImmunity.cs
+++ b/Cooldowns/TarragonImmunity.cs
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
+using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
@@ -6,7 +7,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "TarragonImmunity";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Tarragon Immunity Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/TarragonImmunity";
public override Color OutlineColor => new Color(215, 182, 82);
public override Color CooldownStartColor => Color.Lerp(new Color(171, 106, 49), new Color(215, 182, 82), 1 - instance.Completion);
diff --git a/Cooldowns/UniverseSplitter.cs b/Cooldowns/UniverseSplitter.cs
index 4da91c5af9..e0db0149dd 100644
--- a/Cooldowns/UniverseSplitter.cs
+++ b/Cooldowns/UniverseSplitter.cs
@@ -1,5 +1,6 @@
using Microsoft.Xna.Framework;
using Terraria;
+using Terraria.Localization;
using static CalamityMod.CalamityUtils;
namespace CalamityMod.Cooldowns
@@ -8,7 +9,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "UniverseSplitter";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Universe Splitter Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/UniverseSplitter";
public override Color OutlineColor => rainbowMode;
public override Color CooldownStartColor => rainbowMode;
diff --git a/Cooldowns/WulfrumBastion.cs b/Cooldowns/WulfrumBastion.cs
index 84311ff237..835e2cb3e9 100644
--- a/Cooldowns/WulfrumBastion.cs
+++ b/Cooldowns/WulfrumBastion.cs
@@ -4,6 +4,7 @@ using System;
using Terraria;
using Terraria.Audio;
using Terraria.Graphics.Shaders;
+using Terraria.Localization;
using static Terraria.ModLoader.ModContent;
using CalamityMod.Items.Armor.Wulfrum;
using CalamityMod.UI;
@@ -15,10 +16,9 @@ namespace CalamityMod.Cooldowns
public bool PowerActive => instance.timeLeft > WulfrumHat.BastionCooldown;
public float DurabilityPercent => (instance.timeLeft - WulfrumHat.BastionCooldown) / (float)WulfrumHat.BastionTime;
-
public static new string ID => "WulfrumBastion";
public override bool ShouldDisplay => true;
- public override string DisplayName => PowerActive ? "Power Armor Durability" : "Wulfrum Bastion Cooldown";
+ public override LocalizedText DisplayName => CalamityUtils.GetText("UI.Cooldowns.WulfrumBastion" + (PowerActive ? "Active" : "Cooldown"));
public override string Texture => PowerActive ? "CalamityMod/Cooldowns/WulfrumBastionActive" : "CalamityMod/Cooldowns/WulfrumBastion";
public override string OutlineTexture => "CalamityMod/Cooldowns/WulfrumBastionOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/WulfrumBastionOverlay";
diff --git a/Cooldowns/WulfrumRoverDrive.cs b/Cooldowns/WulfrumRoverDrive.cs
index 6eb90943ff..218731912e 100644
--- a/Cooldowns/WulfrumRoverDrive.cs
+++ b/Cooldowns/WulfrumRoverDrive.cs
@@ -2,6 +2,7 @@
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.GameContent;
+using Terraria.Localization;
using static CalamityMod.CalamityUtils;
using static Terraria.ModLoader.ModContent;
using CalamityMod.Items.Accessories;
@@ -21,7 +22,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "WulfrumRoverDriveDurability";
public override bool CanTickDown => !instance.player.GetModPlayer().RoverDriveOn || instance.timeLeft <= 0;
public override bool ShouldDisplay => instance.player.GetModPlayer().RoverDriveOn;
- public override string DisplayName => "Protective Matrix Durability";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/WulfrumRoverDriveActive";
public override string OutlineTexture => "CalamityMod/Cooldowns/WulfrumRoverDriveOutline";
public override string OverlayTexture => "CalamityMod/Cooldowns/WulfrumRoverDriveOverlay";
@@ -79,7 +80,7 @@ namespace CalamityMod.Cooldowns
public static new string ID => "WulfrumRoverDriveRecharge";
public override bool ShouldDisplay => true;
- public override string DisplayName => "Protective Matrix Recharge";
+ public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/WulfrumRoverDrive";
public override bool SavedWithPlayer => false;
public override bool PersistsThroughDeath => false;
diff --git a/Localization/en-US/Mods.CalamityMod.Events.hjson b/Localization/en-US/Mods.CalamityMod.Events.hjson
index 6a968583d0..b89f113fa7 100644
--- a/Localization/en-US/Mods.CalamityMod.Events.hjson
+++ b/Localization/en-US/Mods.CalamityMod.Events.hjson
@@ -1,15 +1,12 @@
-AcidRainEvent: {
- AcidRainStart: A toxic downpour falls over the wasteland seas!
- AcidRainEnd: The sulphuric skies begin to clear...
-}
-
-BossRushEvent: {
- BossRushStartText: Ah, another contender. Very well, may the ritual commence!
- BossRushTierOneEndText: Oh, you're still alive? Unexpected, but don't get complacent just yet.
- BossRushTierTwoEndText: Persistent, aren't you? Perhaps you have some hope of prosperity, unlike past challengers.
- BossRushTierThreeEndText: Your perseverance is truly a trait to behold. You've come further than even the demigods in a short time.
- BossRushTierThreeEndText2: May your skills remain sharp for the last challenges.
- BossRushTierFourEndText: So you've made it to the final tier, a remarkable feat enviable by even the mightiest of the gods.
- BossRushTierFourEndText2: Go forth and conquer until the ritual's end!
- BossRushTierFiveEndText: Hmm? What, you expected a reward beyond this mere pebble? Patience, the true reward will come apparent in time...
-}
\ No newline at end of file
+AcidRain: Acid Rain
+AcidRainStart: A toxic downpour falls over the wasteland seas!
+AcidRainEnd: The sulphuric skies begin to clear...
+BossRush: Boss Rush
+BossRushStartText: Ah, another contender. Very well, may the ritual commence!
+BossRushTierOneEndText: Oh, you're still alive? Unexpected, but don't get complacent just yet.
+BossRushTierTwoEndText: Persistent, aren't you? Perhaps you have some hope of prosperity, unlike past challengers.
+BossRushTierThreeEndText: Your perseverance is truly a trait to behold. You've come further than even the demigods in a short time.
+BossRushTierThreeEndText2: May your skills remain sharp for the last challenges.
+BossRushTierFourEndText: So you've made it to the final tier, a remarkable feat enviable by even the mightiest of the gods.
+BossRushTierFourEndText2: Go forth and conquer until the ritual's end!
+BossRushTierFiveEndText: Hmm? What, you expected a reward beyond this mere pebble? Patience, the true reward will come apparent in time...
\ No newline at end of file
diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson
index 866ee448d2..8cbaf26114 100644
--- a/Localization/en-US/Mods.CalamityMod.UI.hjson
+++ b/Localization/en-US/Mods.CalamityMod.UI.hjson
@@ -1,16 +1,131 @@
-DefenseDamage: Defense Damage
-RevengeText: Revengeance is active.
-RevengeText2: Revengeance is not active.
-DeathText: Death is active; enjoy the fun.
-DeathText2: Death is not active; not fun enough for you?
-ArmageddonText: Bosses will now kill you instantly.
-ArmageddonText2: Bosses will no longer kill you instantly.
-ArmageddonDodgeDisable: All of your dodges are now disabled.
-ArmageddonDodgeEnable: All of your dodges are now re-enabled.
-ChangingTheRules: You cannot change the rules now!
SmallWorldWarning: "[c/ff00000:SMALL WORLDS NOT SUPPORTED BY CALAMITY]"
+// Main UI Elements
+Adrenaline: Adrenaline
+Nanomachines: Nanomachines
+Rage: Rage
+Charge: Current Charge
+DefenseDamage: Defense Damage
+SulphurousWater: Sulphuric Poisoning
+Stealth: Stealth
+StealthShiftText: Hold SHIFT for more information on Rogue stealth
+StealthInfoText:
+ '''
+ Rogue stealth builds while not attacking and slower while moving
+ Once you have built max stealth, you will be able to perform a Stealth Strike
+ Rogue stealth only reduces when you attack, it does not reduce while moving
+ The higher your rogue stealth the higher your rogue damage and crit
+ Having more stealth regeneration slightly decreases the damage bonus from stealth
+ This is offset by you being able to use stealth strikes far more often
+ '''
+// Difficulty UI
+DifficultyStatusText: "{0} is {1}."
+ModeAppend: " Mode"
+Active: Active
+NotActive: Not active
+DifficultyShiftText: "[c/737373:Hold the 'Shift' key for more information]"
+CurrentlySelected: Currently Selected : {0}
+DifficultyClickText: "[c/919191:Click to select a difficulty mode]"
+ExpertDifficultyLock: "[c/919191:Higher difficulty modes can only be toggled in Expert Mode or above]"
+ChangingTheRules: "[c/919191:You cannot change the rules now!]"
+NoDifficulty: None
+NoDifficultyInfo: The classic Terraria experience, with no Calamity difficulty changes
+Revengeance: Revengeance
+RevengeanceShortInfo: "[c/F54254:The intended Calamity experience!]"
+RevengeanceExpandedInfo:
+ '''
+ [c/B55362:Enables the] [c/85FFE9:Adrenaline] [c/B55362:mechanic. You gain Adrenaline while fighting bosses. Getting hit drops Adrenaline back to 0]
+ [c/B55362: When Adrenaline is maxed, press] {0} [c/B55362:for a large damage boost]
+ [c/B55362:Enables the] [c/FF8B54:Rage] [c/B55362:mechanic. You gain Rage when in proximity of enemies or by using certain items]
+ [c/B55362: When Rage is maxed, press] {1} [c/B55362:for a temporary damage boost]
+ [c/B55362:Most foes have higher stats and more aggressive AIs]
+ [c/B55362:Bosses have new AI mechanics, new phases, and will drop Master Mode loot. Enemies spawn more frequently]
+ [c/F7342A:This mode is more difficult than Expert. Be sure to prepare for the challenge]
+ '''
+RevengeanceActivate: Revengeance is active.
+RevengeanceDeactivate: Revengeance is not active.
+Death: Death
+DeathShortInfo: "[c/C82DF7:A tougher challenge for the more experienced, or for those that want a step up from Revengeance Mode]"
+DeathExpandedInfo:
+ '''
+ [c/B834E0:All foes will pose a much larger threat with highly aggressive AIs and increased damage]
+ [c/B834E0:Bosses have substantially harder AI changes. Enemies are even more numerous and can easily overwhelm you]
+ [c/B834E0:Debuffs are especially lethal and the Abyss is significantly more dangerous]
+ [c/E945FF:Vigilance and tenacity are crucial to survival]
+ '''
+DeathActivate: Death is active; enjoy the fun.
+DeathDeactivate: Death is not active; not fun enough for you?
-/* Enchantments */
+// Cooldowns
+Cooldowns: {
+ AquaticHeartIceShield: Ice Shield Cooldown
+ BloodflareFrenzy: Blood Frenzy Cooldown
+ BloodflareRangedSet: Bloodflare Soul Cooldown
+ BrimflameFrenzy: Brimflame Frenzy Cooldown
+ ChaosState: Teleportation Cooldown
+ CounterScarf: Scarf Cooldown
+ DivineBless: Divine Bless Cooldown
+ DivingPlatesBreaking: Abyssal Diving Suit Plates Durability
+ DivingPlatesBroken: Abyssal Diving Suit Broken Plates
+ EvasionScarf: Scarf Cooldown
+ FleshTotem: Contact Damage Halving Cooldown
+ GlobalDodge: Dodge Cooldown
+ GodSlayerDash: God Slayer Dash Cooldown
+ InkBomb: Ink Bomb Cooldown
+ LifeSteal: Life Steal Cooldown
+ LionHeartShield: Energy Shell Cooldown
+ NebulousCore: Nebulous Core Cooldown
+ OmegaBlueActive: Abyssal Madness
+ OmegaBlueCooldown: Abyssal Madness Cooldown
+ PermafrostConcoction: Permafrost's Concoction Cooldown
+ PlagueBlackout: Plague Blackout Cooldown
+ PotionSickness: Healing Cooldown
+ PrismaticLaser: Prismatic Laser Barrage Cooldown
+ ProfanedSoulArtifact: Profaned Soul Artifact Burnout
+ RelicOfResilience: Relic of Resilience Cooldown
+ RogueBooster: Rogue Booster Cooldown
+ SandCloak: Sand Cloak Cooldown
+ SandsmokeBombActive: Sandsmoke Bomb Duration
+ SandsmokeBombCooldown: Sandsmoke Bomb Cooldown
+ SilvaRevive: Silva Revive Cooldown
+ TarragonCloak: Tarragon Cloak Cooldown
+ TarragonImmunity: Tarragon Immunity Cooldown
+ UniverseSplitter: Universe Splitter Cooldown
+ WulfrumBastionActive: Power Armor Durability
+ WulfrumBastionCooldown: Wulfrum Bastion Cooldown
+ WulfrumRoverDriveDurability: Protective Matrix Durability
+ WulfrumRoverDriveRecharge: Protective Matrix Recharge
+}
+
+// Draedon UI
+Contact: Contact
+Summon: Summon
+Evoke: Evoke
+Communicate: Communicate
+Cost: "Cost: "
+ConfirmationText: Are you sure?
+UpgradesRequired: Encryption unsolveable: Upgrades required.
+ThanatosIcon: Thanatos, a serpentine terror with impervious armor and innumerable laser turrets.
+AresIcon: Ares, a heavyweight, diabolical monstrosity with four Exo superweapons.
+ArtemisApolloIcon: Artemis and Apollo, a pair of extremely persistent automatons with unstable energy reserves.
+
+// Hologram Texts
+Hologram: {
+ Text1: To any personnel engaged in the laboratories. Please wear your steel engraved ID badge at all times. It is the easiest method to discern your body if any accidents do occur.
+ Text2: To experiment is to fail. To fail is to learn. To learn is to advance.
+ Text3: Apparent danger while researching serves only to enhance the research experience.
+ Text4: Laser-type weapon prototypes are incredibly lethal and are not to be used within presentation halls.
+ Text5: High-energy plasma emissions have adverse effects on both flesh and metal. Do not attempt to handle vented plasma.
+ Text6: Electric shocks from military equipment are intended to be fatal. If you survive such a shock, that is a clear indicator that the device is not functioning properly. Please report any such cases.
+ Text7: All employees are hereby notified that they will be held accountable for any collateral damage caused by Gauss weapon fire, even during sanctioned testing exercises.
+ Text8: Security Field Emitters will vaporize all unauthorized equipment and personnel. Please leave personal effects in the designated lockers off-site. This also means: Do not bring any family members who are not enlisted as personnel.
+ Text9: If one does manage to breach restricted testing facilities, do at least record any unexpected burns, lacerations, bruising, fractur... ...trauma, shocks and otherwise. Thank you.
+ Text10: The power grid has been... ...eavily compromised. Abort research and proceed to the emergency exits located at... ...and egress with haste.
+ Text11: Notify the Security Department of any aggressive local fauna immediately
+ PostCultistText: Sensors have detected a significant breach in the spacetime continuum.
+ EasterEgg: Please help. I'm stuck in this hologram machine.
+}
+
+// Enchantments
Exhumed: {
DisplayName: Exhumed
Description: Transforms this item into something significantly stronger.
@@ -93,7 +208,7 @@ Lecherous: {
}
Disenchant: Disenchant
-/* Worldgen Tasks */
+// Worldgen Tasks
EvilIslandCorrupt: Adding a putrid floating island
EvilIslandCrimson: Adding a grotesque floating island
BetterJungleTemple: Building a bigger jungle temple
diff --git a/Systems/DifficultyModeSystem.cs b/Systems/DifficultyModeSystem.cs
index 9894c046bb..fa1cdd14f6 100644
--- a/Systems/DifficultyModeSystem.cs
+++ b/Systems/DifficultyModeSystem.cs
@@ -121,11 +121,11 @@ namespace CalamityMod.Systems
}
public abstract Asset Texture { get; }
- public virtual string ExpandedDescription => "";
+ public virtual LocalizedText ExpandedDescription => LocalizedText.Empty;
public float DifficultyScale;
- public string Name;
- public string ShortDescription;
+ public LocalizedText Name;
+ public LocalizedText ShortDescription;
public string ActivationTextKey;
public string DeactivationTextKey;
@@ -167,11 +167,11 @@ namespace CalamityMod.Systems
public NoDifficulty()
{
DifficultyScale = 0;
- Name = "None";
- ShortDescription = "The classic Terraria experience, with no Calamity difficulty changes";
+ Name = CalamityUtils.GetText("UI.NoDifficulty");
+ ShortDescription = CalamityUtils.GetText("UI.NoDifficultyInfo");
- ActivationTextKey = "";
- DeactivationTextKey = "";
+ ActivationTextKey = string.Empty;
+ DeactivationTextKey = string.Empty;
ActivationSound = SoundID.MenuTick with { Volume = 1f};
@@ -199,35 +199,24 @@ namespace CalamityMod.Systems
}
}
- public override string ExpandedDescription
+ public override LocalizedText ExpandedDescription
{
get
{
- string mainColor = "B55362";
-
string rageKey = "[c/FFCE85:" + CalamityKeybinds.RageHotKey.TooltipHotkeyString() + "]";
string adrenKey = "[c/79DFBF:" + CalamityKeybinds.AdrenalineHotKey.TooltipHotkeyString() + "]";
-
-
- return ("[c/"+mainColor+":Enables the][c/85FFE9: Adrenaline] [c/"+mainColor+":mechanic. You gain Adrenaline while fighting bosses. Getting hit drops Adrenaline back to 0] \n" +
- "[c/"+mainColor+": When Adrenaline is maxed, press] " + adrenKey + " [c/"+mainColor+":for a large damage boost] \n" +
- "[c/"+mainColor+":Enables the ][c/FF8B54:Rage][c/"+mainColor+": mechanic. You gain Rage when in proximity of enemies or by using certain items] \n" +
- "[c/"+mainColor+": When Rage is maxed, press] " + rageKey + " [c/"+mainColor+":for a temporary damage boost] \n" +
- "[c/"+mainColor+":Most foes have higher stats and more aggressive AIs] \n" +
- "[c/"+mainColor+":Bosses have new AI mechanics, new phases, and will drop Master Mode loot. Enemies spawn more frequently] \n" +
- "[c/F7342A:This mode is more difficult than Expert. Be sure to prepare for the challenge]");
-
+ return CalamityUtils.GetText("UI.RevengeanceExpandedInfo").WithFormatArgs(rageKey, adrenKey);
}
}
public RevengeanceDifficulty()
{
DifficultyScale = 0.25f;
- Name = "Revengeance";
- ShortDescription = "[c/F54254:The intended Calamity experience!]";
+ Name = CalamityUtils.GetText("UI.Revengeance");
+ ShortDescription = CalamityUtils.GetText("UI.RevengeanceShortInfo");
- ActivationTextKey = "Mods.CalamityMod.UI.RevengeText";
- DeactivationTextKey = "Mods.CalamityMod.UI.RevengeText2";
+ ActivationTextKey = "Mods.CalamityMod.UI.RevengeanceActivate";
+ DeactivationTextKey = "Mods.CalamityMod.UI.RevengeanceDeactivate";
ActivationSound = SoundID.Item119;
@@ -255,19 +244,16 @@ namespace CalamityMod.Systems
}
}
- public override string ExpandedDescription =>"[c/B834E0:All foes will pose a much larger threat with highly aggressive AIs and increased damage] \n" +
- "[c/B834E0:Bosses have substantially harder AI changes. Enemies are even more numerous and can easily overwhelm you] \n" +
- "[c/B834E0:Debuffs are especially lethal and the Abyss is significantly more dangerous] \n" +
- "[c/E945FF:Vigilance and tenacity are crucial to survival]";
+ public override LocalizedText ExpandedDescription => CalamityUtils.GetText("UI.DeathExpandedInfo");
public DeathDifficulty()
{
DifficultyScale = 0.5f;
- Name = "Death";
- ShortDescription = "[c/C82DF7:A tougher challenge for the more experienced, or for those that want a step up from Revengeance Mode]";
+ Name = CalamityUtils.GetText("UI.Death");
+ ShortDescription = CalamityUtils.GetText("UI.DeathShortInfo");
- ActivationTextKey = "Mods.CalamityMod.UI.DeathText";
- DeactivationTextKey = "Mods.CalamityMod.UI.DeathText2";
+ ActivationTextKey = "Mods.CalamityMod.UI.DeathActivate";
+ DeactivationTextKey = "Mods.CalamityMod.UI.DeathDeactivate";
ActivationSound = DemonshadeHelm.ActivationSound;
@@ -280,7 +266,7 @@ namespace CalamityMod.Systems
for (int i = 0; i < tierList.Length; i++)
{
- if (tierList[i].Name == "Revengeance")
+ if (tierList[i].Name == CalamityUtils.GetText("UI.Revengeance"))
return i;
}
diff --git a/UI/AcidRainUI.cs b/UI/AcidRainUI.cs
index 134fa78025..e36b9f7489 100644
--- a/UI/AcidRainUI.cs
+++ b/UI/AcidRainUI.cs
@@ -10,7 +10,7 @@ namespace CalamityMod.UI
{
public override bool IsActive => AcidRainEvent.AcidRainEventIsOngoing && Main.LocalPlayer.Calamity().ZoneSulphur;
public override float CompletionRatio => 1f - AcidRainEvent.AcidRainCompletionRatio;
- public override string InvasionName => "Acid Rain";
+ public override string InvasionName => CalamityUtils.GetTextValue("Events.AcidRain");
public override Color InvasionBarColor => AcidRainEvent.TextColor;
public override Texture2D IconTexture => ModContent.Request("CalamityMod/UI/MiscTextures/AcidRainIcon").Value;
}
diff --git a/UI/AstralArcanumUI.cs b/UI/AstralArcanumUI.cs
index d7724172a8..cabd3d2c78 100644
--- a/UI/AstralArcanumUI.cs
+++ b/UI/AstralArcanumUI.cs
@@ -7,6 +7,7 @@ using Terraria;
using Terraria.Audio;
using Terraria.GameContent;
using Terraria.ID;
+using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.UI
@@ -28,25 +29,16 @@ namespace CalamityMod.UI
private static bool Open;
private static Texture2D CircleTextures;
- private static string[] CircleNames;
private static int LastHovered;
public static void Load(Mod mod)
{
CircleTextures = ModContent.Request("CalamityMod/UI/MiscTextures/AstralArcanumCircles", AssetRequestMode.ImmediateLoad).Value;
- CircleNames = new string[]
- {
- "Underworld",
- "Dungeon",
- "Jungle",
- "Random"
- };
}
public static void Unload()
{
- CircleNames = null;
CircleTextures = null;
}
@@ -129,10 +121,25 @@ namespace CalamityMod.UI
SoundEngine.PlaySound(SoundID.MenuTick);
}
- string text = "Select";
- if (selectedCircle != -1)
+ // Default to "Select"
+ string text = Language.GetTextValue("LegacyMisc.53");
+
+ switch (selectedCircle)
{
- text = CircleNames[selectedCircle];
+ case 0:
+ text = Language.GetTextValue("Bestiary_Biomes.TheUnderworld");
+ break;
+ case 1:
+ text = Language.GetTextValue("Bestiary_Biomes.TheDungeon");
+ break;
+ case 2:
+ text = Language.GetTextValue("Bestiary_Biomes.Jungle");
+ break;
+ case 3: // Random
+ text = Language.GetTextValue("LegacyMenu.27");
+ break;
+ default:
+ break;
}
Vector2 size = FontAssets.MouseText.Value.MeasureString(text);
diff --git a/UI/BossRushUI.cs b/UI/BossRushUI.cs
index 7ad9c9815e..57742fa04f 100644
--- a/UI/BossRushUI.cs
+++ b/UI/BossRushUI.cs
@@ -31,7 +31,7 @@ namespace CalamityMod.UI
return invasionBasedCompletion + bossBasedCompletion / BossRushEvent.Bosses.Count;
}
}
- public override string InvasionName => "Boss Rush";
+ public override string InvasionName => CalamityUtils.GetTextValue("Events.BossRush");
public override Color InvasionBarColor => Color.DarkSlateBlue;
public override Texture2D IconTexture => ModContent.Request("CalamityMod/UI/MiscTextures/BossRushIcon").Value;
diff --git a/UI/CooldownRackUI.cs b/UI/CooldownRackUI.cs
index 477c3d768f..c25d2ae5b4 100644
--- a/UI/CooldownRackUI.cs
+++ b/UI/CooldownRackUI.cs
@@ -68,7 +68,7 @@ namespace CalamityMod.UI
if (iconRectangle.Intersects(mouse))
{
- mouseHover = handler.DisplayName;
+ mouseHover = handler.DisplayName.ToString();
iconOpacity = MathHelper.Clamp((float)Math.Sin(Main.GlobalTimeWrappedHourly % MathHelper.Pi) * 2f, 0, 1) * 0.1f + 0.9f;
}
diff --git a/UI/DefenseDamageDisplayUI.cs b/UI/DefenseDamageDisplayUI.cs
index ac1a1763e4..fd21ef38c2 100644
--- a/UI/DefenseDamageDisplayUI.cs
+++ b/UI/DefenseDamageDisplayUI.cs
@@ -39,7 +39,7 @@ namespace CalamityMod.UI
if (hoveringOverIcon)
{
Main.hoverItemName = $"{Main.LocalPlayer.statDefense} {Language.GetTextValue("LegacyInterface.10")}" +
- $"\n{defenseDamage} {Language.GetTextValue("Mods.CalamityMod.UI.DefenseDamage")}";
+ $"\n{defenseDamage} {CalamityUtils.GetTextValue("UI.DefenseDamage")}";
}
}
}
diff --git a/UI/DraedonSummoning/CodebreakerUI.cs b/UI/DraedonSummoning/CodebreakerUI.cs
index b6523b51f7..f4bba42ff5 100644
--- a/UI/DraedonSummoning/CodebreakerUI.cs
+++ b/UI/DraedonSummoning/CodebreakerUI.cs
@@ -409,7 +409,7 @@ namespace CalamityMod.UI.DraedonSummoning
public static void DisplayCostText(Vector2 drawPosition, int totalCellsCost)
{
// Display the cost text.
- string text = "Cost: ";
+ string text = CalamityUtils.GetTextValue("UI.Cost");
drawPosition.X -= GeneralScale * 30f;
Utils.DrawBorderStringFourWay(Main.spriteBatch, FontAssets.MouseText.Value, text, drawPosition.X, drawPosition.Y + GeneralScale * 20f, Color.White * (Main.mouseTextColor / 255f), Color.Black, Vector2.Zero, GeneralScale);
@@ -507,7 +507,7 @@ namespace CalamityMod.UI.DraedonSummoning
Vector2 scale = new Vector2(1f, 0.3f) * GeneralScale;
Main.spriteBatch.Draw(textPanelTexture, drawPosition, null, Color.White, 0f, textPanelTexture.Size() * 0.5f, scale, 0, 0);
- string confirmationText = "Are you sure?";
+ string confirmationText = CalamityUtils.GetTextValue("UI.ConfirmationText");
Vector2 confirmationTextPosition = drawPosition - FontAssets.MouseText.Value.MeasureString(confirmationText) * GeneralScale * 0.5f + Vector2.UnitY * GeneralScale * 4f;
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, FontAssets.MouseText.Value, confirmationText, confirmationTextPosition, Color.Red, 0f, Vector2.Zero, Vector2.One * GeneralScale);
}
@@ -616,11 +616,12 @@ namespace CalamityMod.UI.DraedonSummoning
// And display a text indicator that describes the function of the button.
// The color of the text cycles through the exo mech crystal palette.
- string contactText = "Contact";
+ string contactTextKey = "Contact";
if (DownedBossSystem.downedExoMechs)
- contactText = "Summon";
+ contactTextKey = "Summon";
if (codebreakerTileEntity.ContainsBloodSample)
- contactText = "Evoke";
+ contactTextKey = "Evoke";
+ string contactText = CalamityUtils.GetTextValue("UI." + contactTextKey);
Color contactTextColor = CalamityUtils.MulticolorLerp((float)Math.Cos(Main.GlobalTimeWrappedHourly * 0.7f) * 0.5f + 0.5f, CalamityUtils.ExoPalette);
@@ -656,7 +657,7 @@ namespace CalamityMod.UI.DraedonSummoning
// And display a text indicator that describes the function of the button.
// The color of the text is the same as Draedon's talk color.
- string communicateText = "Communicate";
+ string communicateText = CalamityUtils.GetTextValue("UI.Communicate");
// Center the draw position.
drawPosition.X -= FontAssets.MouseText.Value.MeasureString(communicateText).X * GeneralScale * 0.5f;
@@ -666,7 +667,7 @@ namespace CalamityMod.UI.DraedonSummoning
public static void DisplayNotStrongEnoughErrorText(Vector2 drawPosition)
{
- string text = "Encryption unsolveable: Upgrades required.";
+ string text = CalamityUtils.GetTextValue("UI.UpgradesRequired");
Utils.DrawBorderStringFourWay(Main.spriteBatch, FontAssets.MouseText.Value, text, drawPosition.X, drawPosition.Y, Color.IndianRed * (Main.mouseTextColor / 255f), Color.Black, Vector2.Zero, GeneralScale);
}
}
diff --git a/UI/DraedonSummoning/ExoMechSelectionUI.cs b/UI/DraedonSummoning/ExoMechSelectionUI.cs
index 56f1ee4791..464adb2175 100644
--- a/UI/DraedonSummoning/ExoMechSelectionUI.cs
+++ b/UI/DraedonSummoning/ExoMechSelectionUI.cs
@@ -61,20 +61,20 @@ namespace CalamityMod.UI.DraedonSummoning
case ExoMech.Destroyer:
iconScale = DestroyerIconScale;
iconMechTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/HeadIcon_THanos").Value;
- description = "Thanatos, a serpentine terror with impervious armor and innumerable laser turrets.";
+ description = CalamityUtils.GetTextValue("UI.ThanatosIcon");
hoverSound = ThanatosHoverSound;
break;
case ExoMech.Prime:
iconScale = PrimeIconScale;
iconMechTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/HeadIcon_Ares").Value;
- description = "Ares, a heavyweight, diabolical monstrosity with four Exo superweapons.";
+ description = CalamityUtils.GetTextValue("UI.AresIcon");
hoverSound = AresHoverSound;
break;
default:
case ExoMech.Twins:
iconScale = TwinsIconScale;
iconMechTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/HeadIcon_ArtemisApollo").Value;
- description = "Artemis and Apollo, a pair of extremely persistent automatons with unstable energy reserves.";
+ description = CalamityUtils.GetTextValue("UI.ArtemisApolloIcon");
hoverSound = TwinsHoverSound;
break;
}
diff --git a/UI/DraedonsArsenal/ChargeMeterUI.cs b/UI/DraedonsArsenal/ChargeMeterUI.cs
index 7c26e07d4d..90cc31caa4 100644
--- a/UI/DraedonsArsenal/ChargeMeterUI.cs
+++ b/UI/DraedonsArsenal/ChargeMeterUI.cs
@@ -102,7 +102,7 @@ namespace CalamityMod.UI.DraedonsArsenal
// If the mouse is on top of the meter, show the exact numeric charge.
string percentString = (100f * modItem.ChargeRatio).ToString("n2");
// Tooltip only goes to one decimal place, but the meter displays two. This doesn't help the player much at all but hey, it's a thing.
- Main.instance.MouseText($"Current Charge: {percentString}%", 0, 0, -1, -1, -1, -1);
+ Main.instance.MouseText($"{CalamityUtils.GetTextValue("UI.Charge")}: {percentString}%", 0, 0, -1, -1, -1, -1);
Vector2 newScreenRatioPosition = screenRatioPosition;
// Handle mouse dragging
diff --git a/UI/DraedonsArsenal/LabHologramProjectorUI.cs b/UI/DraedonsArsenal/LabHologramProjectorUI.cs
index 613f3dd0fe..967fcd109c 100644
--- a/UI/DraedonsArsenal/LabHologramProjectorUI.cs
+++ b/UI/DraedonsArsenal/LabHologramProjectorUI.cs
@@ -21,24 +21,12 @@ namespace CalamityMod.UI.DraedonsArsenal
{
List dialogueOptions = new List()
{
- "To any personnel engaged in the laboratories. Please wear your steel engraved ID badge at all times. It is the easiest method to discern your body if any accidents do occur.",
- "To experiment is to fail. To fail is to learn. To learn is to advance.",
- "Apparent danger while researching serves only to enhance the research experience.",
-
- "Laser-type weapon prototypes are incredibly lethal and are not to be used within presentation halls.",
- "High-energy plasma emissions have adverse effects on both flesh and metal. Do not attempt to handle vented plasma.",
- "Electric shocks from military equipment are intended to be fatal. If you survive such a shock, that is a clear indicator that the device is not functioning properly. Please report any such cases.",
- "All employees are hereby notified that they will be held accountable for any collateral damage caused by Gauss weapon fire, even during sanctioned testing exercises.",
- "Security Field Emitters will vaporize all unauthorized equipment and personnel. Please leave personal effects in the designated lockers off-site. This also means: Do not bring any family members who are not enlisted as personnel.",
-
- "If one does manage to breach restricted testing facilities, do at least record any unexpected burns, lacerations, bruising, fractur... ...trauma, shocks and otherwise. Thank you.",
- "The power grid has been... ...eavily compromised. Abort research and proceed to the emergency exits located at... ...and egress with haste.",
- "Notify the Security Department of any aggressive local fauna immediately."
+ "Text1", "Text2", "Text3", "Text4", "Text5", "Text6", "Text7", "Text8", "Text9", "Text10", "Text11"
};
if (NPC.downedAncientCultist)
- dialogueOptions.Add("Sensors have detected a significant breach in the spacetime continuum.");
+ dialogueOptions.Add("PostCultistText");
- return Main.rand.NextBool(5000) ? "Please help. I'm stuck in this hologram machine." : Main.rand.Next(dialogueOptions.ToArray());
+ return Main.rand.NextBool(5000) ? "EasterEgg" : Main.rand.Next(dialogueOptions.ToArray());
}
public static void Draw(SpriteBatch spriteBatch)
{
@@ -78,7 +66,7 @@ namespace CalamityMod.UI.DraedonsArsenal
// Pick text to display, if it has not already been picked.
if (string.IsNullOrEmpty(mp.CurrentlyViewedHologramText))
- mp.CurrentlyViewedHologramText = ChooseDialogue();
+ mp.CurrentlyViewedHologramText = CalamityUtils.GetText("UI.Hologram." + ChooseDialogue()).ToString();
Color backgroundColor = new Color(200, 200, 200, 200);
diff --git a/UI/ModeIndicator/ModeIndicatorUI.cs b/UI/ModeIndicator/ModeIndicatorUI.cs
index c0d8b6fd66..7bb61f7a36 100644
--- a/UI/ModeIndicator/ModeIndicatorUI.cs
+++ b/UI/ModeIndicator/ModeIndicatorUI.cs
@@ -91,8 +91,8 @@ namespace CalamityMod.UI.ModeIndicator
Texture2D indicatorTexture = GetCurrentDifficulty.Texture.Value;
- GetDifficultyStatus(out string difficultyText);
- GetLockStatus(out string lockText, out bool locked);
+ GetDifficultyStatus(out LocalizedText difficultyText);
+ GetLockStatus(out LocalizedText lockText, out bool locked);
//Grows the icon when hovering it.
if (MouseScreenArea.Intersects(MainClickArea))
@@ -144,7 +144,7 @@ namespace CalamityMod.UI.ModeIndicator
spriteBatch.Draw(outlineTexture, DrawCenter, null, Color.White * opacity, 0f, outlineTexture.Size() * 0.5f, MainIconScale, SpriteEffects.None, 0f);
}
- string extraDescText = "";
+ string extraDescText = string.Empty;
if (menuOpenTransitionTime > 0 || menuOpen)
ManageHexIcons(spriteBatch, out extraDescText);
@@ -154,13 +154,13 @@ namespace CalamityMod.UI.ModeIndicator
if (locked)
DrawLock(spriteBatch);
- if (difficultyText != "" || extraDescText != "")
+ if (difficultyText != LocalizedText.Empty || extraDescText != string.Empty)
{
- string textToDisplay = difficultyText;
- if (difficultyText != "")
+ string textToDisplay = difficultyText.ToString();
+ if (difficultyText != LocalizedText.Empty)
{
- if (lockText != "")
- textToDisplay += "\n" + lockText;
+ if (lockText != LocalizedText.Empty)
+ textToDisplay += "\n" + lockText.ToString();
}
else
@@ -197,49 +197,46 @@ namespace CalamityMod.UI.ModeIndicator
Main.LocalPlayer.mouseInterface = true;
Main.instance.MouseText(textToDisplay);
}
-
-
-
-
TickVariables();
}
- public static void GetDifficultyStatus(out string text)
+ public static void GetDifficultyStatus(out LocalizedText text)
{
- text = "";
+ text = LocalizedText.Empty;
if (MouseScreenArea.Intersects(MainClickArea))
{
//Display the first non-none difficulty by default
- string modeToDisplay = Difficulties[1].Name;
+ string modeToDisplay = Difficulties[1].Name.ToString();
bool anyActiveMode = false;
for (int i = 1; i < Difficulties.Length; i++)
{
if (GetCurrentDifficulty == Difficulties[i])
{
- modeToDisplay = Difficulties[i].Name;
+ modeToDisplay = Difficulties[i].Name.ToString();
anyActiveMode = true;
}
}
-
- text = $"{modeToDisplay} Mode is {(anyActiveMode ? "active" : "not active")}.";
+ string modeStr = CalamityUtils.GetTextValue("UI.ModeAppend");
+ string activeText = CalamityUtils.GetTextValue("UI." + (anyActiveMode ? "Active" : "NotActive"));
+ text = CalamityUtils.GetText("UI.DifficultyStatusText").WithFormatArgs(modeToDisplay + modeStr, activeText.ToLower());
}
}
//Checks if the mode change is available or not, and jiggles the lock icon if the player clicks on it.
- public static void GetLockStatus(out string text, out bool locked)
+ public static void GetLockStatus(out LocalizedText text, out bool locked)
{
locked = false;
- text = "[c/919191:Click to select a difficulty mode]";
+ text = CalamityUtils.GetText("UI.DifficultyClickText");
if (!Main.expertMode && GetCurrentDifficulty == Difficulties[0])
{
locked = true;
- text = "[c/919191:Higher difficulty modes can only be toggled in Expert Mode or above]";
+ text = CalamityUtils.GetText("UI.ExpertDifficultyLock");
}
else if (CalamityPlayer.areThereAnyDamnBosses || BossRushEvent.BossRushActive)
{
locked = true;
- text = "[c/919191:"+ Language.GetTextValue("Mods.CalamityMod.UI.ChangingTheRules") + "]";
+ text = CalamityUtils.GetText("UI.ChangingTheRules");
}
//Shakes the lock if it automatically changed, because a boss was summoned
@@ -311,7 +308,7 @@ namespace CalamityMod.UI.ModeIndicator
Texture2D outlineTexture = ModContent.Request("CalamityMod/UI/ModeIndicator/ModeIndicatorOutline").Value;
- text = "";
+ text = string.Empty;
bool modeHovered = false;
for (int i = 0; i < tiers; i++)
@@ -373,24 +370,24 @@ namespace CalamityMod.UI.ModeIndicator
#region Difficulty toggling
public static string GetDifficultyText(DifficultyMode mode)
{
- string preface = "";
+ LocalizedText preface = mode.Name;
if (mode == GetCurrentDifficulty)
- preface = "Currently Selected : ";
+ preface = CalamityUtils.GetText("UI.CurrentlySelected").WithFormatArgs(mode.Name.ToString());
- string text = mode.Name + "\n" + mode.ShortDescription;
+ string text = "\n" + mode.ShortDescription.ToString();
//Not scuffed anymore
- if (mode.ExpandedDescription != "")
+ if (mode.ExpandedDescription != LocalizedText.Empty)
{
//Show the description either if the player is holding shift.
if (Main.keyState.IsKeyDown(Microsoft.Xna.Framework.Input.Keys.LeftShift))
- text += "\n" + mode.ExpandedDescription;
+ text += "\n" + mode.ExpandedDescription.ToString();
else
- text += "\n[c/737373:Hold the 'Shift' key for more information]";
+ text += "\n" + CalamityUtils.GetTextValue("UI.DifficultyShiftText");
}
- return preface + text;
+ return preface.ToString() + text;
}
public static void SwitchToDifficulty(DifficultyMode mode)
@@ -411,7 +408,7 @@ namespace CalamityMod.UI.ModeIndicator
{
if (Difficulties[i].Enabled)
{
- if (Difficulties[i].DeactivationTextKey != "")
+ if (Difficulties[i].DeactivationTextKey != string.Empty)
DisplayLocalizedText(Difficulties[i].DeactivationTextKey, Difficulties[i].ChatTextColor);
Difficulties[i].Enabled = false;
}
@@ -441,7 +438,7 @@ namespace CalamityMod.UI.ModeIndicator
}
}
- if (mode.ActivationTextKey != "")
+ if (mode.ActivationTextKey != string.Empty)
DisplayLocalizedText(mode.ActivationTextKey, mode.ChatTextColor);
mode.Enabled = true;
diff --git a/UI/Rippers/RipperUI.cs b/UI/Rippers/RipperUI.cs
index 3e9c54b0a5..e395a60752 100644
--- a/UI/Rippers/RipperUI.cs
+++ b/UI/Rippers/RipperUI.cs
@@ -195,7 +195,7 @@ namespace CalamityMod.UI.Rippers
// Add hover text if the mouse is over Rage bar
string rageStr = MakeRipperPercentString(modPlayer.rage, modPlayer.rageMax);
- Main.instance.MouseText($"Rage: {rageStr}");
+ Main.instance.MouseText($"{CalamityUtils.GetTextValue("UI.Rage")}: {rageStr}");
// The bar is draggable if enabled in config.
Vector2 newScreenRatioPosition = rageScreenRatioPos;
@@ -235,7 +235,7 @@ namespace CalamityMod.UI.Rippers
Main.LocalPlayer.mouseInterface = true;
// Add hover text if the mouse is over the bar
- string adrenNameStr = modPlayer.draedonsHeart ? "Nanomachines" : "Adrenaline";
+ string adrenNameStr = CalamityUtils.GetTextValue("UI." + (modPlayer.draedonsHeart ? "Nanomachines" : "Adrenaline"));
string adrenAmountStr = MakeRipperPercentString(modPlayer.adrenaline, modPlayer.adrenalineMax);
Main.instance.MouseText($"{adrenNameStr}: {adrenAmountStr}");
diff --git a/UI/StealthUI.cs b/UI/StealthUI.cs
index 9a356294de..121c90d676 100644
--- a/UI/StealthUI.cs
+++ b/UI/StealthUI.cs
@@ -96,20 +96,15 @@ namespace CalamityMod.UI
{
string stealthStr = (100f * modPlayer.rogueStealth).ToString("n2");
string maxStealthStr = (100f * modPlayer.rogueStealthMax).ToString("n2");
- string textToDisplay = $"Stealth: {stealthStr}/{maxStealthStr}\n";
+ string textToDisplay = $"{CalamityUtils.GetTextValue("UI.Stealth")}: {stealthStr}/{maxStealthStr}\n";
if (!Main.keyState.IsKeyDown(LeftShift))
{
- textToDisplay += "Hold SHIFT for more information on Rogue stealth";
+ textToDisplay += CalamityUtils.GetTextValue("UI.StealthShiftText");
}
else
{
- textToDisplay += "Rogue stealth builds while not attacking and slower while moving\n" +
- "Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
- "Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
- "The higher your rogue stealth the higher your rogue damage and crit\n" +
- "Having more stealth regeneration slightly decreases the damage bonus from stealth\n" +
- "This is offset by you being able to use stealth strikes far more often";
+ textToDisplay += CalamityUtils.GetTextValue("UI.StealthInfoText");
}
Main.instance.MouseText(textToDisplay, 0, 0, -1, -1, -1, -1);
diff --git a/UI/SulphurousWaterMeter/SulphurousWaterMeterUI.cs b/UI/SulphurousWaterMeter/SulphurousWaterMeterUI.cs
index 36c7756de2..7df65788bd 100644
--- a/UI/SulphurousWaterMeter/SulphurousWaterMeterUI.cs
+++ b/UI/SulphurousWaterMeter/SulphurousWaterMeterUI.cs
@@ -89,7 +89,7 @@ namespace CalamityMod.UI.SulphurousWaterMeter
if (modPlayer.SulphWaterPoisoningLevel > 0f && modPlayer.SulphWaterUIOpacity >= 0f)
{
string poisonText = (modPlayer.SulphWaterPoisoningLevel * 100f).ToString("n2");
- string textToDisplay = $"Sulphuric Poisoning: {poisonText}/100";
+ string textToDisplay = $"{CalamityUtils.GetTextValue("UI.SulphurousWater")}: {poisonText}/100";
Main.instance.MouseText(textToDisplay, 0, 0, -1, -1, -1, -1);
modPlayer.SulphWaterUIOpacity = MathHelper.Lerp(modPlayer.SulphWaterUIOpacity, 0.25f, 0.035f);
}