diff --git a/Items/AntiCystOintment.cs b/Items/AntiCystOintment.cs index cb28dad371..e08f3dc823 100644 --- a/Items/AntiCystOintment.cs +++ b/Items/AntiCystOintment.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; using System.Collections.Generic; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; +using static CalamityMod.CalamityUtils; namespace CalamityMod.Items { @@ -81,9 +82,9 @@ namespace CalamityMod.Items { string text; if (state == true) - text = "Currently On"; + text = GetTextValue("Items.Misc.SpawnBlockersOn"); else - text = "Currently Off"; + text = GetTextValue("Items.Misc.SpawnBlockersOff"); tooltips.FindAndReplace("[STATE]", text); } public override void AddRecipes() diff --git a/Items/AntiTumorOintment.cs b/Items/AntiTumorOintment.cs index ccc496ddab..48b31cd9a0 100644 --- a/Items/AntiTumorOintment.cs +++ b/Items/AntiTumorOintment.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using System.Collections.Generic; +using static CalamityMod.CalamityUtils; namespace CalamityMod.Items { @@ -81,9 +82,9 @@ namespace CalamityMod.Items { string text; if (state == true) - text = "Currently On"; + text = GetTextValue("Items.Misc.SpawnBlockersOn"); else - text = "Currently Off"; + text = GetTextValue("Items.Misc.SpawnBlockersOff"); tooltips.FindAndReplace("[STATE]", text); } diff --git a/Items/BleachBall.cs b/Items/BleachBall.cs index 4aa398d5d6..faa445f07b 100644 --- a/Items/BleachBall.cs +++ b/Items/BleachBall.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Materials; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using System.Collections.Generic; +using static CalamityMod.CalamityUtils; namespace CalamityMod.Items { @@ -82,9 +83,9 @@ namespace CalamityMod.Items { string text; if (state == true) - text = "Currently On"; + text = GetTextValue("Items.Misc.SpawnBlockersOn"); else - text = "Currently Off"; + text = GetTextValue("Items.Misc.SpawnBlockersOff"); tooltips.FindAndReplace("[STATE]", text); } diff --git a/Items/BrokenWaterFilter.cs b/Items/BrokenWaterFilter.cs index 4f8e9b7b5d..f143e390c0 100644 --- a/Items/BrokenWaterFilter.cs +++ b/Items/BrokenWaterFilter.cs @@ -5,6 +5,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using System.Collections.Generic; +using static CalamityMod.CalamityUtils; namespace CalamityMod.Items { @@ -29,11 +30,11 @@ namespace CalamityMod.Items public override void RightClick(Player player) { - if (player.Calamity().disableAnahitaSpawns == true) - player.Calamity().disableAnahitaSpawns = false; + if (player.Calamity().noStupidNaturalARSpawns == true) + player.Calamity().noStupidNaturalARSpawns = false; else - player.Calamity().disableAnahitaSpawns = true; - state = player.Calamity().disableAnahitaSpawns; + player.Calamity().noStupidNaturalARSpawns = true; + state = player.Calamity().noStupidNaturalARSpawns; bool favorited = Item.favorited; Item.SetDefaults(ModContent.ItemType()); @@ -82,9 +83,9 @@ namespace CalamityMod.Items { string text; if (state == true) - text = "Currently On"; + text = GetTextValue("Items.Misc.SpawnBlockersOn"); else - text = "Currently Off"; + text = GetTextValue("Items.Misc.SpawnBlockersOff"); tooltips.FindAndReplace("[STATE]", text); } diff --git a/Items/SirenproofEarMuffs.cs b/Items/SirenproofEarMuffs.cs index e7450b35b8..8b6c27122a 100644 --- a/Items/SirenproofEarMuffs.cs +++ b/Items/SirenproofEarMuffs.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using System.Collections.Generic; +using static CalamityMod.CalamityUtils; namespace CalamityMod.Items { @@ -81,9 +82,9 @@ namespace CalamityMod.Items { string text; if (state == true) - text = "Currently On"; + text = GetTextValue("Items.Misc.SpawnBlockersOn"); else - text = "Currently Off"; + text = GetTextValue("Items.Misc.SpawnBlockersOff"); tooltips.FindAndReplace("[STATE]", text); } diff --git a/Items/VoodooDemonVoodooDoll.cs b/Items/VoodooDemonVoodooDoll.cs index ca4aa3cbf5..87e20e01a8 100644 --- a/Items/VoodooDemonVoodooDoll.cs +++ b/Items/VoodooDemonVoodooDoll.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; using System.Collections.Generic; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; +using static CalamityMod.CalamityUtils; namespace CalamityMod.Items { @@ -82,9 +83,9 @@ namespace CalamityMod.Items { string text; if (state == true) - text = "Currently On"; + text = GetTextValue("Items.Misc.SpawnBlockersOn"); else - text = "Currently Off"; + text = GetTextValue("Items.Misc.SpawnBlockersOff"); tooltips.FindAndReplace("[STATE]", text); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson index 263512ea28..7703d16a87 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson @@ -196,6 +196,9 @@ StarlightFuelCell: { } // Spawn Blockers +SpawnBlockersOn: Currently enabled +SpawnBlockersOff: Currently disabled + AntiCystOintment: { DisplayName: Anti-Cyst Ointment Tooltip: