diff --git a/Walls/IVisibleThroughWater.cs b/Walls/IVisibleThroughWater.cs index 1514e9137f..6beb43fcb2 100644 --- a/Walls/IVisibleThroughWater.cs +++ b/Walls/IVisibleThroughWater.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Walls public const float WaterTransparency = 0.5f; public static readonly Color WaterColor = new Color(9, 61, 191); - public static void AddEntries(this IVisibleThroughWater visibleThroughWater, Color baseColor, LocalizedText text = null) + public static void AddMapEntryWithWaterVisibility(this IVisibleThroughWater visibleThroughWater, Color baseColor, LocalizedText text = null) { AssertIsWall(visibleThroughWater, out var wall); wall.AddMapEntry(baseColor, text); diff --git a/Walls/NavystoneWall.cs b/Walls/NavystoneWall.cs index 80c3b49708..500df762c1 100644 --- a/Walls/NavystoneWall.cs +++ b/Walls/NavystoneWall.cs @@ -2,12 +2,14 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class NavystoneWall : ModWall + public class NavystoneWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { DustType = 96; - AddMapEntry(new Color(16, 45, 48)); + this.AddMapEntryWithWaterVisibility(new Color(16, 45, 48)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/NavystoneWallSafe.cs b/Walls/NavystoneWallSafe.cs index 4690d5bddf..ef276c3a45 100644 --- a/Walls/NavystoneWallSafe.cs +++ b/Walls/NavystoneWallSafe.cs @@ -4,13 +4,15 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class NavystoneWallSafe : ModWall + public class NavystoneWallSafe : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { Main.wallHouse[Type] = true; DustType = 96; - AddMapEntry(new Color(0, 50, 50)); + this.AddMapEntryWithWaterVisibility(new Color(0, 50, 50)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/SmoothNavystoneWall.cs b/Walls/SmoothNavystoneWall.cs index efffbffede..09dcbd2e6d 100644 --- a/Walls/SmoothNavystoneWall.cs +++ b/Walls/SmoothNavystoneWall.cs @@ -5,13 +5,15 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class SmoothNavystoneWall : ModWall + public class SmoothNavystoneWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { Main.wallHouse[Type] = true; - AddMapEntry(new Color(27, 35, 36)); + this.AddMapEntryWithWaterVisibility(new Color(27, 35, 36)); } public override bool CreateDust(int i, int j, ref int type)