From 07d8a475ce8a2ddf8788d46596cd592d4e672a7f Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 14 Aug 2020 20:00:06 -0400 Subject: [PATCH] lab doors can no longer be sloped (bruh) --- Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs | 3 ++- Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs | 3 ++- Tiles/DraedonStructures/LaboratoryDoorClosed.cs | 3 ++- Tiles/DraedonStructures/LaboratoryDoorOpen.cs | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs index 134328617c..8de32059e0 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorClosed.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; TileID.Sets.NotReallySolid[Type] = true; TileID.Sets.DrawsWalls[Type] = true; - //TileObjectData.newTile.CopyFrom(TileObjectData.Style1xX); TileObjectData.newTile.Width = 1; TileObjectData.newTile.Height = 4; TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; @@ -43,6 +42,8 @@ namespace CalamityMod.Tiles.DraedonStructures openDoorID = ModContent.TileType(); } + public override bool Slope(int i, int j) => false; + public override bool CanExplode(int i, int j) => false; public override bool HasSmartInteract() => true; diff --git a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs index d19bfe113a..5bc51e328b 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDoorOpen.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; TileID.Sets.NotReallySolid[Type] = true; TileID.Sets.DrawsWalls[Type] = true; - //TileObjectData.newTile.CopyFrom(TileObjectData.Style1xX); TileObjectData.newTile.Width = 1; TileObjectData.newTile.Height = 4; TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; @@ -43,6 +42,8 @@ namespace CalamityMod.Tiles.DraedonStructures closeDoorID = ModContent.TileType(); } + public override bool Slope(int i, int j) => false; + public override bool CanExplode(int i, int j) => false; public override bool HasSmartInteract() => true; diff --git a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs index 046ae664db..b4fef29458 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorClosed.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorClosed.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; TileID.Sets.NotReallySolid[Type] = true; TileID.Sets.DrawsWalls[Type] = true; - //TileObjectData.newTile.CopyFrom(TileObjectData.Style1xX); TileObjectData.newTile.Width = 1; TileObjectData.newTile.Height = 4; TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; @@ -43,6 +42,8 @@ namespace CalamityMod.Tiles.DraedonStructures openDoorID = ModContent.TileType(); } + public override bool Slope(int i, int j) => false; + public override bool CanExplode(int i, int j) => false; public override bool HasSmartInteract() => true; diff --git a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs index 62a42d90c1..77c7f68eb7 100644 --- a/Tiles/DraedonStructures/LaboratoryDoorOpen.cs +++ b/Tiles/DraedonStructures/LaboratoryDoorOpen.cs @@ -21,7 +21,6 @@ namespace CalamityMod.Tiles.DraedonStructures Main.tileWaterDeath[Type] = false; TileID.Sets.NotReallySolid[Type] = true; TileID.Sets.DrawsWalls[Type] = true; - //TileObjectData.newTile.CopyFrom(TileObjectData.Style1xX); TileObjectData.newTile.Width = 1; TileObjectData.newTile.Height = 4; TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; @@ -43,6 +42,8 @@ namespace CalamityMod.Tiles.DraedonStructures closeDoorID = ModContent.TileType(); } + public override bool Slope(int i, int j) => false; + public override bool CanExplode(int i, int j) => false; public override bool HasSmartInteract() => true;