diff --git a/Tiles/Rubblemaker/SunkenSea/DriftwoodMastEcho.cs b/Tiles/Rubblemaker/SunkenSea/DriftwoodMastEcho.cs index 7143c3c0c4..ec1dda2d76 100644 --- a/Tiles/Rubblemaker/SunkenSea/DriftwoodMastEcho.cs +++ b/Tiles/Rubblemaker/SunkenSea/DriftwoodMastEcho.cs @@ -11,9 +11,8 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea public override void SetStaticDefaults() { base.SetStaticDefaults(); - RegisterItemDrop(ModContent.ItemType(), Type, 0); - // TODO: Most of these currently don't work - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3, 4, 5); } } } diff --git a/Tiles/Rubblemaker/SunkenSea/DriftwoodScrapsEcho.cs b/Tiles/Rubblemaker/SunkenSea/DriftwoodScrapsEcho.cs new file mode 100644 index 0000000000..8d152ba381 --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/DriftwoodScrapsEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.FurnitureDriftwood; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class DriftwoodScrapsEcho : DriftwoodScraps + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/DriftwoodScraps"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3, 4, 5); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/DriftwoodWreckageEcho.cs b/Tiles/Rubblemaker/SunkenSea/DriftwoodWreckageEcho.cs new file mode 100644 index 0000000000..cf1f14042c --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/DriftwoodWreckageEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.FurnitureDriftwood; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class DriftwoodWreckageEcho : DriftwoodWreckage + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/DriftwoodWreckage"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/FryCoralEcho.cs b/Tiles/Rubblemaker/SunkenSea/FryCoralEcho.cs index fd886c7efa..b5425d5d73 100644 --- a/Tiles/Rubblemaker/SunkenSea/FryCoralEcho.cs +++ b/Tiles/Rubblemaker/SunkenSea/FryCoralEcho.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - // TODO: Currently none of these work - //FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); } } @@ -24,7 +23,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - //FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); } } public class FryCoral3Echo : FryCoral3 @@ -34,7 +33,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); } } } diff --git a/Tiles/Rubblemaker/SunkenSea/LargeDriftwoodWreckageEcho.cs b/Tiles/Rubblemaker/SunkenSea/LargeDriftwoodWreckageEcho.cs new file mode 100644 index 0000000000..b148882c65 --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/LargeDriftwoodWreckageEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.FurnitureDriftwood; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class LargeDriftwoodWreckageEcho : LargeDriftwoodWreckage + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/LargeDriftwoodWreckage"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3, 4, 5); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/MediumDriftwoodWreckageEcho.cs b/Tiles/Rubblemaker/SunkenSea/MediumDriftwoodWreckageEcho.cs new file mode 100644 index 0000000000..295eae7c13 --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/MediumDriftwoodWreckageEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.FurnitureDriftwood; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class MediumDriftwoodWreckageEcho : MediumDriftwoodWreckage + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/MediumDriftwoodWreckage"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/MediumDunesandPileEcho.cs b/Tiles/Rubblemaker/SunkenSea/MediumDunesandPileEcho.cs new file mode 100644 index 0000000000..71202d7df8 --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/MediumDunesandPileEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.SunkenSea; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class MediumDunesandPileEcho : MediumDunesandPile + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/MediumDunesandPile"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/MediumShorePileEcho.cs b/Tiles/Rubblemaker/SunkenSea/MediumShorePileEcho.cs new file mode 100644 index 0000000000..23429c8d61 --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/MediumShorePileEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.SunkenSea; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class MediumShorePileEcho : MediumShorePile + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/MediumShorePile"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/ShorePileEcho.cs b/Tiles/Rubblemaker/SunkenSea/ShorePileEcho.cs new file mode 100644 index 0000000000..0f4dac0a02 --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/ShorePileEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.SunkenSea; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class ShorePileEcho : ShorePile + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/ShorePile"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3, 4, 5, 6, 7, 8); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/SmallLimestoneCobblePileEcho.cs b/Tiles/Rubblemaker/SunkenSea/SmallLimestoneCobblePileEcho.cs new file mode 100644 index 0000000000..6d4edf4dfc --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/SmallLimestoneCobblePileEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.SunkenSea; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class SmallLimestoneCobblePileEcho : SmallLimestoneCobblePile + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/SmallLimestoneCobblePile"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3, 4, 5); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/SunkenShipEcho.cs b/Tiles/Rubblemaker/SunkenSea/SunkenShipEcho.cs new file mode 100644 index 0000000000..8c52d4a9cc --- /dev/null +++ b/Tiles/Rubblemaker/SunkenSea/SunkenShipEcho.cs @@ -0,0 +1,18 @@ +using CalamityMod.Items.Placeables.FurnitureDriftwood; +using CalamityMod.Tiles.SunkenSea.Ambient; +using Terraria.GameContent; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Rubblemaker.SunkenSea +{ + public class SunkenShipEcho : SunkenShip + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/SunkenShip"; + public override void SetStaticDefaults() + { + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType(), Type); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + } + } +} diff --git a/Tiles/Rubblemaker/SunkenSea/TableCoralEcho.cs b/Tiles/Rubblemaker/SunkenSea/TableCoralEcho.cs index ebe0e4e805..ffbcb34c23 100644 --- a/Tiles/Rubblemaker/SunkenSea/TableCoralEcho.cs +++ b/Tiles/Rubblemaker/SunkenSea/TableCoralEcho.cs @@ -1,53 +1,28 @@ using CalamityMod.Items.Placeables.SunkenSea; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; +using CalamityMod.Tiles.SunkenSea.Ambient; using Terraria.GameContent; -using Terraria.Localization; using Terraria.ModLoader; -using Terraria.ObjectData; namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { - public class TableCoralEcho : ModTile + public class TableCoralEcho : TableCoral { - int subsheetHeight = 34; - int subsheetWidth = 108; public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/TableCoral"; public override void SetStaticDefaults() { - Main.tileFrameImportant[Type] = true; - Main.tileNoAttach[Type] = true; - Main.tileSolidTop[Type] = true; - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); - TileObjectData.newTile.StyleMultiplier = 2; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.None, 0, 0); - TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); - TileObjectData.newAlternate.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 0); - TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; - TileObjectData.addAlternate(1); - TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 2, 0); - TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; - TileObjectData.addTile(Type); - DustType = 253; - AddMapEntry(new Color(54, 69, 72)); - RegisterItemDrop(ModContent.ItemType()); - FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); - base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType()); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1, 2); } - - public override void NumDust(int i, int j, bool fail, ref int num) + } + public class TableCoralLeftEcho : TableCoralLeft + { + public override string Texture => "CalamityMod/Tiles/SunkenSea/Ambient/TableCoralLeft"; + public override void SetStaticDefaults() { - num = fail ? 1 : 3; - } - public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset) - { - int xPos = i % 1; - int yPos = j % 3; - frameXOffset = xPos * subsheetWidth; - frameYOffset = yPos * subsheetHeight; + base.SetStaticDefaults(); + RegisterItemDrop(ModContent.ItemType()); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1, 2); } } } diff --git a/Tiles/Rubblemaker/SunkenSea/TallDigitateCoralEcho.cs b/Tiles/Rubblemaker/SunkenSea/TallDigitateCoralEcho.cs index 0e8e57edef..44e933f12c 100644 --- a/Tiles/Rubblemaker/SunkenSea/TallDigitateCoralEcho.cs +++ b/Tiles/Rubblemaker/SunkenSea/TallDigitateCoralEcho.cs @@ -23,8 +23,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - // TODO: Currently the larger Digitate Corals do not work - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); } } public class TallDigitateCoral3Echo : TallDigitateCoral3 @@ -34,7 +33,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); } } public class TallDigitateCoral4Echo : TallDigitateCoral4 @@ -44,7 +43,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); } } } diff --git a/Tiles/Rubblemaker/SunkenSea/WallCoralEcho.cs b/Tiles/Rubblemaker/SunkenSea/WallCoralEcho.cs index f7ef145f92..8c223c74a5 100644 --- a/Tiles/Rubblemaker/SunkenSea/WallCoralEcho.cs +++ b/Tiles/Rubblemaker/SunkenSea/WallCoralEcho.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - // TODO: None of these work - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3); } } @@ -24,7 +23,7 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea { base.SetStaticDefaults(); RegisterItemDrop(ModContent.ItemType(), Type, 0); - //FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); + FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3); } } } diff --git a/Tiles/Rubblemaker/SunkenSea/WideScarletSeagrassEcho.cs b/Tiles/Rubblemaker/SunkenSea/WideScarletSeagrassEcho.cs index 6af242ce9a..2cf383b66e 100644 --- a/Tiles/Rubblemaker/SunkenSea/WideScarletSeagrassEcho.cs +++ b/Tiles/Rubblemaker/SunkenSea/WideScarletSeagrassEcho.cs @@ -11,9 +11,8 @@ namespace CalamityMod.Tiles.Rubblemaker.SunkenSea public override void SetStaticDefaults() { base.SetStaticDefaults(); - RegisterItemDrop(ModContent.ItemType(), Type, 0); - // TODO: Currently none of these work - //FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0); + RegisterItemDrop(ModContent.ItemType(), Type, 0, 1, 2, 3); + FlexibleTileWand.RubblePlacementMedium.AddVariations(ModContent.ItemType(), Type, 0, 1, 2, 3); } } } diff --git a/Tiles/SunkenSea/Ambient/BlueCoralTree.cs b/Tiles/SunkenSea/Ambient/BlueCoralTree.cs index ab1fceaaf6..7d4ebca19e 100644 --- a/Tiles/SunkenSea/Ambient/BlueCoralTree.cs +++ b/Tiles/SunkenSea/Ambient/BlueCoralTree.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 3; TileObjectData.newTile.Height = 4; TileObjectData.newTile.Origin = new Point16(1, 3); diff --git a/Tiles/SunkenSea/Ambient/BrownCoral.cs b/Tiles/SunkenSea/Ambient/BrownCoral.cs index 10ad45b85f..5d0500b449 100644 --- a/Tiles/SunkenSea/Ambient/BrownCoral.cs +++ b/Tiles/SunkenSea/Ambient/BrownCoral.cs @@ -5,8 +5,6 @@ using Terraria.ObjectData; using Terraria.DataStructures; using Terraria.Enums; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Humanizer; namespace CalamityMod.Tiles.SunkenSea.Ambient { @@ -17,9 +15,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(1, 2); + TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -47,9 +46,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 4; TileObjectData.newTile.Height = 4; - TileObjectData.newTile.Origin = new Point16(2, 3); + TileObjectData.newTile.Origin = new Point16(1, 3); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); diff --git a/Tiles/SunkenSea/Ambient/CoralPileGiant.cs b/Tiles/SunkenSea/Ambient/CoralPileGiant.cs index 3951a41547..cf550110df 100644 --- a/Tiles/SunkenSea/Ambient/CoralPileGiant.cs +++ b/Tiles/SunkenSea/Ambient/CoralPileGiant.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; @@ -15,9 +15,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient { Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 3; + TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.Width = 3; TileObjectData.newTile.Height = 4; - TileObjectData.newTile.Origin = new Point16(2, 3); + TileObjectData.newTile.Origin = new Point16(1, 3); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -30,4 +31,4 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient HitSound = SoundID.Dig; } } -} \ No newline at end of file +} diff --git a/Tiles/SunkenSea/Ambient/DigitateCoral.png b/Tiles/SunkenSea/Ambient/DigitateCoral.png index 4af501b5ec..824e912038 100644 Binary files a/Tiles/SunkenSea/Ambient/DigitateCoral.png and b/Tiles/SunkenSea/Ambient/DigitateCoral.png differ diff --git a/Tiles/SunkenSea/Ambient/DigitateCoral2.png b/Tiles/SunkenSea/Ambient/DigitateCoral2.png deleted file mode 100644 index 7012604abd..0000000000 Binary files a/Tiles/SunkenSea/Ambient/DigitateCoral2.png and /dev/null differ diff --git a/Tiles/SunkenSea/Ambient/DigitateCoral3.png b/Tiles/SunkenSea/Ambient/DigitateCoral3.png deleted file mode 100644 index 53d503eb5f..0000000000 Binary files a/Tiles/SunkenSea/Ambient/DigitateCoral3.png and /dev/null differ diff --git a/Tiles/SunkenSea/Ambient/DriftwoodMast.cs b/Tiles/SunkenSea/Ambient/DriftwoodMast.cs index 2279a2049b..4a50811ec2 100644 --- a/Tiles/SunkenSea/Ambient/DriftwoodMast.cs +++ b/Tiles/SunkenSea/Ambient/DriftwoodMast.cs @@ -14,19 +14,16 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient { Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x4); + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + TileObjectData.newTile.Width = 3; + TileObjectData.newTile.Height = 4; + TileObjectData.newTile.Origin = new(0, 3); TileObjectData.newTile.CoordinateHeights = new[] { 16, 16, 16, 16 }; TileObjectData.newTile.CoordinateWidth = 16; TileObjectData.newTile.CoordinatePadding = 2; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 3, 0); - TileObjectData.newTile.Origin = new Point16(1, 3); - - TileObjectData.newTile.StyleHorizontal = true; - TileObjectData.newTile.StyleWrapLimit = 6; - TileObjectData.newTile.RandomStyleRange = 6; - TileObjectData.newTile.DrawYOffset = 2; TileObjectData.addTile(Type); diff --git a/Tiles/SunkenSea/Ambient/DriftwoodScraps.cs b/Tiles/SunkenSea/Ambient/DriftwoodScraps.cs index 523a619eae..161c230aa5 100644 --- a/Tiles/SunkenSea/Ambient/DriftwoodScraps.cs +++ b/Tiles/SunkenSea/Ambient/DriftwoodScraps.cs @@ -21,11 +21,7 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient TileObjectData.newTile.CoordinatePadding = 2; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 3, 0); - TileObjectData.newTile.Origin = new Point16(1, 2); - - TileObjectData.newTile.StyleHorizontal = true; - TileObjectData.newTile.StyleWrapLimit = 6; - TileObjectData.newTile.RandomStyleRange = 6; + TileObjectData.newTile.Origin = new Point16(1, 1); TileObjectData.newTile.DrawYOffset = 2; diff --git a/Tiles/SunkenSea/Ambient/DriftwoodWreckage.cs b/Tiles/SunkenSea/Ambient/DriftwoodWreckage.cs new file mode 100644 index 0000000000..ef8d838035 --- /dev/null +++ b/Tiles/SunkenSea/Ambient/DriftwoodWreckage.cs @@ -0,0 +1,35 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.Enums; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.SunkenSea.Ambient +{ + public class DriftwoodWreckage : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + + TileObjectData.newTile.Width = 5; + TileObjectData.newTile.CoordinateHeights = new[] { 16, 16, }; + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 5, 0); + TileObjectData.newTile.Origin = new Point16(2, 1); + + TileObjectData.newTile.DrawYOffset = 2; + + TileObjectData.addTile(Type); + AddMapEntry(new Color(146, 123, 127)); + DustType = DustID.Shadewood_Tree; + HitSound = SoundID.Dig; + } + } +} diff --git a/Tiles/SunkenSea/Ambient/FryCoral.cs b/Tiles/SunkenSea/Ambient/FryCoral.cs index 275a3ac956..a8089ecf1f 100644 --- a/Tiles/SunkenSea/Ambient/FryCoral.cs +++ b/Tiles/SunkenSea/Ambient/FryCoral.cs @@ -15,15 +15,9 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(2, 2); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); AddMapEntry(new Color(79, 196, 149)); DustType = DustID.BlueMoss; @@ -45,15 +39,9 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(2, 2); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); AddMapEntry(new Color(79, 196, 149)); DustType = DustID.BlueMoss; @@ -74,15 +62,11 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); TileObjectData.newTile.Width = 4; - TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(2, 3); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; - TileObjectData.newTile.StyleWrapLimit = 36; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop, TileObjectData.newTile.Width, 0); TileObjectData.newTile.DrawYOffset = 3; + TileObjectData.addTile(Type); AddMapEntry(new Color(79, 196, 149)); DustType = DustID.BlueMoss; diff --git a/Tiles/SunkenSea/Ambient/GiantNavystone.cs b/Tiles/SunkenSea/Ambient/GiantNavystone.cs index 5d55115998..76c12dded6 100644 --- a/Tiles/SunkenSea/Ambient/GiantNavystone.cs +++ b/Tiles/SunkenSea/Ambient/GiantNavystone.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; @@ -15,7 +15,8 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient { Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 5; + TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.Width = 5; TileObjectData.newTile.Height = 5; TileObjectData.newTile.Origin = new Point16(2, 4); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16 }; @@ -37,7 +38,8 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient { Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; - TileObjectData.newTile.Width = 5; + TileObjectData.newTile.UsesCustomCanPlace = true; + TileObjectData.newTile.Width = 5; TileObjectData.newTile.Height = 4; TileObjectData.newTile.Origin = new Point16(2, 3); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; @@ -52,4 +54,4 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient HitSound = SoundID.Dig; } } -} \ No newline at end of file +} diff --git a/Tiles/SunkenSea/Ambient/LargeDriftwoodWreckage.cs b/Tiles/SunkenSea/Ambient/LargeDriftwoodWreckage.cs index 75874e0904..0943eb965f 100644 --- a/Tiles/SunkenSea/Ambient/LargeDriftwoodWreckage.cs +++ b/Tiles/SunkenSea/Ambient/LargeDriftwoodWreckage.cs @@ -14,18 +14,16 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient { Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; - TileObjectData.newTile.CopyFrom(TileObjectData.Style5x4); + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + TileObjectData.newTile.Height = 4; + TileObjectData.newTile.Width = 5; TileObjectData.newTile.CoordinateHeights = new[] { 16, 16, 16, 16 }; TileObjectData.newTile.CoordinateWidth = 16; TileObjectData.newTile.CoordinatePadding = 2; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 3, 0); - TileObjectData.newTile.Origin = new Point16(1, 4); - - TileObjectData.newTile.StyleHorizontal = true; - TileObjectData.newTile.StyleWrapLimit = 6; - TileObjectData.newTile.RandomStyleRange = 6; + TileObjectData.newTile.Origin = new Point16(1, 3); TileObjectData.newTile.DrawYOffset = 2; diff --git a/Tiles/SunkenSea/Ambient/MediumDriftwoodWreckage.cs b/Tiles/SunkenSea/Ambient/MediumDriftwoodWreckage.cs new file mode 100644 index 0000000000..11c878e862 --- /dev/null +++ b/Tiles/SunkenSea/Ambient/MediumDriftwoodWreckage.cs @@ -0,0 +1,35 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.Enums; +using Terraria.ID; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.SunkenSea.Ambient +{ + public class MediumDriftwoodWreckage : ModTile + { + public override void SetStaticDefaults() + { + Main.tileFrameImportant[Type] = true; + Main.tileSolid[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.CoordinateHeights = new[] { 16, 16, 16 }; + TileObjectData.newTile.CoordinateWidth = 16; + TileObjectData.newTile.CoordinatePadding = 2; + + TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 3, 0); + TileObjectData.newTile.Origin = new Point16(1, 2); + + TileObjectData.newTile.DrawYOffset = 2; + + TileObjectData.addTile(Type); + AddMapEntry(new Color(146, 123, 127)); + DustType = DustID.Shadewood_Tree; + HitSound = SoundID.Dig; + } + } +} diff --git a/Tiles/SunkenSea/Ambient/MediumDunesandPile.cs b/Tiles/SunkenSea/Ambient/MediumDunesandPile.cs index 909aee6412..6ae18a63fc 100644 --- a/Tiles/SunkenSea/Ambient/MediumDunesandPile.cs +++ b/Tiles/SunkenSea/Ambient/MediumDunesandPile.cs @@ -1,8 +1,5 @@ -using System; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; @@ -20,13 +17,8 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileLavaDeath[Type] = true; Main.tileWaterDeath[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(2, 2); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16 }; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.DrawYOffset = 2; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.StyleWrapLimit = 3; @@ -37,6 +29,8 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient AddMapEntry(new Color(185, 104, 80)); DustType = DustID.BlueMoss; HitSound = SoundID.Dig; + + base.SetStaticDefaults(); } } } diff --git a/Tiles/SunkenSea/Ambient/MediumShorePile.cs b/Tiles/SunkenSea/Ambient/MediumShorePile.cs index 4743988be3..fc6dd5914e 100644 --- a/Tiles/SunkenSea/Ambient/MediumShorePile.cs +++ b/Tiles/SunkenSea/Ambient/MediumShorePile.cs @@ -1,8 +1,5 @@ -using System; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; @@ -20,13 +17,8 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileLavaDeath[Type] = true; Main.tileWaterDeath[Type] = false; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(2, 2); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16 }; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); + TileObjectData.newTile.DrawYOffset = 2; TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.StyleWrapLimit = 3; @@ -37,6 +29,8 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient AddMapEntry(new Color(158, 129, 177)); DustType = DustID.BlueMoss; HitSound = SoundID.Dig; + + base.SetStaticDefaults(); } } } diff --git a/Tiles/SunkenSea/Ambient/StalkCoral.cs b/Tiles/SunkenSea/Ambient/StalkCoral.cs index 6cd41c5f5f..416101790f 100644 --- a/Tiles/SunkenSea/Ambient/StalkCoral.cs +++ b/Tiles/SunkenSea/Ambient/StalkCoral.cs @@ -15,9 +15,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 3; TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(2, 2); + TileObjectData.newTile.Origin = new Point16(0, 1); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -50,9 +51,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(2, 2); + TileObjectData.newTile.Origin = new Point16(0, 1); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -85,9 +87,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 4; TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(2, 3); + TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); diff --git a/Tiles/SunkenSea/Ambient/TallDigitateCoral.cs b/Tiles/SunkenSea/Ambient/TallDigitateCoral.cs index c32be69462..fee7cce644 100644 --- a/Tiles/SunkenSea/Ambient/TallDigitateCoral.cs +++ b/Tiles/SunkenSea/Ambient/TallDigitateCoral.cs @@ -15,9 +15,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(2, 2); + TileObjectData.newTile.Origin = new Point16(0, 2); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -50,9 +51,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.UsesCustomCanPlace = true; TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 4; - TileObjectData.newTile.Origin = new Point16(2, 2); + TileObjectData.newTile.Origin = new Point16(0, 3); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -85,9 +87,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2xX); TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 5; - TileObjectData.newTile.Origin = new Point16(2, 3); + TileObjectData.newTile.Origin = new Point16(0, 4); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); @@ -120,9 +123,10 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileFrameImportant[Type] = true; Main.tileSolid[Type] = false; Main.tileLighted[Type] = true; + TileObjectData.newTile.CopyFrom(TileObjectData.Style2xX); TileObjectData.newTile.Width = 2; TileObjectData.newTile.Height = 6; - TileObjectData.newTile.Origin = new Point16(2, 3); + TileObjectData.newTile.Origin = new Point16(0, 5); TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16, 16, 16 }; TileObjectData.newTile.StyleWrapLimit = 36; TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); diff --git a/Tiles/SunkenSea/Ambient/WallCoral.cs b/Tiles/SunkenSea/Ambient/WallCoral.cs index 10c7af2a3e..3bdff5ec08 100644 --- a/Tiles/SunkenSea/Ambient/WallCoral.cs +++ b/Tiles/SunkenSea/Ambient/WallCoral.cs @@ -16,23 +16,16 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileSolidTop[Type] = false; Main.tileLighted[Type] = true; - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); - TileObjectData.newTile.Origin = new Point16(1, 1); - - TileObjectData.newTile.AnchorTop = AnchorData.Empty; - TileObjectData.newTile.AnchorBottom = AnchorData.Empty; - TileObjectData.newTile.AnchorLeft = AnchorData.Empty; - TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 3, 0); - TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; - TileObjectData.newTile.StyleHorizontal = true; - TileObjectData.newTile.StyleWrapLimit = 4; - TileObjectData.newTile.RandomStyleRange = 4; + TileObjectData.newTile.StyleWrapLimit = 3; + TileObjectData.newTile.RandomStyleRange = 3; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.Origin = new Point16(1, 1); TileObjectData.newTile.CoordinateHeights = new[] { 16, 16, 16 }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.AnchorBottom = AnchorData.Empty; + TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 3, 0); TileObjectData.newTile.DrawXOffset = 2; - TileObjectData.addTile(Type); DustType = 253; diff --git a/Tiles/SunkenSea/Ambient/WallCoralLeft.cs b/Tiles/SunkenSea/Ambient/WallCoralLeft.cs index 7bd84d49d0..1321286e04 100644 --- a/Tiles/SunkenSea/Ambient/WallCoralLeft.cs +++ b/Tiles/SunkenSea/Ambient/WallCoralLeft.cs @@ -17,14 +17,15 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient Main.tileLighted[Type] = true; TileObjectData.newTile.StyleHorizontal = true; - TileObjectData.newTile.StyleWrapLimit = 4; - TileObjectData.newTile.RandomStyleRange = 4; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3); + TileObjectData.newTile.StyleWrapLimit = 3; + TileObjectData.newTile.RandomStyleRange = 3; + TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); + TileObjectData.newTile.Height = 3; + TileObjectData.newTile.Origin = new Point16(1, 1); + TileObjectData.newTile.CoordinateHeights = new[] { 16, 16, 16 }; TileObjectData.newTile.AnchorBottom = AnchorData.Empty; - TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 0); - TileObjectData.newTile.DrawXOffset = -2; - + TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 3, 0); + TileObjectData.newTile.DrawXOffset = 2; TileObjectData.addTile(Type); DustType = 253; diff --git a/Tiles/SunkenSea/Ambient/WideScarletSeagrass.cs b/Tiles/SunkenSea/Ambient/WideScarletSeagrass.cs index 905f79c0fe..dce0167d27 100644 --- a/Tiles/SunkenSea/Ambient/WideScarletSeagrass.cs +++ b/Tiles/SunkenSea/Ambient/WideScarletSeagrass.cs @@ -1,8 +1,6 @@ using System; using Microsoft.Xna.Framework; using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; @@ -22,14 +20,7 @@ namespace CalamityMod.Tiles.SunkenSea.Ambient TileID.Sets.ReplaceTileBreakUp[Type] = true; TileID.Sets.SwaysInWindBasic[Type] = true; - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(2, 2); - TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16 }; - TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile | AnchorType.SolidWithTop | AnchorType.SolidSide, TileObjectData.newTile.Width, 0); - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - + TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); TileObjectData.newTile.StyleHorizontal = true; TileObjectData.newTile.StyleWrapLimit = 4; TileObjectData.newTile.RandomStyleRange = 4;