Fixes to Broken filter and proper localization
This commit is contained in:
1 parent
6e95a8a652
commit
967dcfdb2d
7 files changed
+25
-16
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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<BrokenWaterFilter>());
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -196,6 +196,9 @@ StarlightFuelCell: {
|
||||
}
|
||||
|
||||
// Spawn Blockers
|
||||
SpawnBlockersOn: Currently enabled
|
||||
SpawnBlockersOff: Currently disabled
|
||||
|
||||
AntiCystOintment: {
|
||||
DisplayName: Anti-Cyst Ointment
|
||||
Tooltip:
|
||||
|
||||
Reference in new issue
Block a user