From e829bafc70ed6d1e7a05eb5b72717182bcb6cc1b Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Tue, 11 Nov 2025 20:25:21 -0800 Subject: [PATCH 1/2] fix earlier sunken sea ambient tiles --- .../SunkenSea/DriftwoodMastEcho.cs | 5 +- Tiles/Rubblemaker/SunkenSea/FryCoralEcho.cs | 7 ++- Tiles/Rubblemaker/SunkenSea/TableCoralEcho.cs | 49 +++++------------- .../SunkenSea/TallDigitateCoralEcho.cs | 7 ++- Tiles/Rubblemaker/SunkenSea/WallCoralEcho.cs | 5 +- .../SunkenSea/WideScarletSeagrassEcho.cs | 5 +- Tiles/SunkenSea/Ambient/BlueCoralTree.cs | 1 + Tiles/SunkenSea/Ambient/BrownCoral.cs | 8 +-- Tiles/SunkenSea/Ambient/CoralPileGiant.cs | 9 ++-- Tiles/SunkenSea/Ambient/DigitateCoral.png | Bin 505 -> 547 bytes Tiles/SunkenSea/Ambient/DigitateCoral2.png | Bin 783 -> 0 bytes Tiles/SunkenSea/Ambient/DigitateCoral3.png | Bin 715 -> 0 bytes Tiles/SunkenSea/Ambient/DriftwoodMast.cs | 11 ++-- Tiles/SunkenSea/Ambient/FryCoral.cs | 30 +++-------- Tiles/SunkenSea/Ambient/GiantNavystone.cs | 10 ++-- Tiles/SunkenSea/Ambient/StalkCoral.cs | 9 ++-- Tiles/SunkenSea/Ambient/TallDigitateCoral.cs | 12 +++-- Tiles/SunkenSea/Ambient/WallCoral.cs | 21 +++----- Tiles/SunkenSea/Ambient/WallCoralLeft.cs | 15 +++--- .../SunkenSea/Ambient/WideScarletSeagrass.cs | 11 +--- 20 files changed, 81 insertions(+), 134 deletions(-) delete mode 100644 Tiles/SunkenSea/Ambient/DigitateCoral2.png delete mode 100644 Tiles/SunkenSea/Ambient/DigitateCoral3.png 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/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/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 4af501b5ec9c19b37528e10cea9c44a6e60491c7..824e91203806b11ba48533322cc743521fcb43a1 100644 GIT binary patch literal 547 zcmV+;0^I$HP)Px#1ZP1_K>z@;j|==^1poj56;Mo6MJH)`E_jGMikdj2v>sAd5;;Nu006UD0fb3JK~z{r)t1|C z#4rd2eS!S{Cs(Jl2-`{2mu#$_ms)@s7qGMC_?pT`gJpC-s|R7V*1Fn4rO4M>|5e8Q z2UxAWj|Cc4Yiq3uX=bL#z};;4OOL_krk*8lYj-h12{T#(cd_L)n2h%YLNtH1qEc4W zahUCgmC`$9x|bQv*J@5GsfcH*#zcR2!xXG*d3|YtDMqU~MwU|C(=tC;`(RljVaJC? z0&hkMkHcN#FcwYw%@QVm?-{WV_HFHfxw}&$N~87oDCN`309}oU_Na^$@_fN}z;req)j`%ICQpS)Y~vnX(E9@8J;oj ze1??p3~Nm`28{zt;ok$xN5);PRT8y2?9qCfFBs*jHIr#4R$zh)AO5#ti6gbPun9oI zu<^4XQR63t9h7|iCw9Q%vBISyL^0Mxltyb(&dK=f5T`uZ1hfMNj^>kuvW}tP7zmEG lqNF$k2bz6*U~lME*bgkBNbNlivpWC)002ovPDHLkV1g@m=K=r# literal 505 zcmVPx$vq?ljR9J=Wma$61P!xv0iXe)#QYfN>D1t6hbnD>e8@TukzCrN;M0^3k)kPP5 z0$uHzoEI!t;FnnyfpgS*mbt)Oba+ktn=THMcK)U%-FN- z`Sd7Ly?2KGNuz6~sLRHu7l9~4w#(iwFJiSeJHMUm-et)7*49+xx)xiXoGAg(m#^<1 zh7g&_`VVdK&X99b3uQn?lqH$7^gFjK{u>f=l??!H&yIn}kgk@X^)IbVS<~(3Qo7B5 zLw4TS?37k3JvWpY85S~~hW~~%frFV+Yz|p-u5Qxv%9QHtWOw1eAz|l@tGk42qGvTD vhR0CHmo-oER(H9wWAFECMtEoFpEP~|ZkE4&xUnET00000NkvXXu0mjfU+3}2 diff --git a/Tiles/SunkenSea/Ambient/DigitateCoral2.png b/Tiles/SunkenSea/Ambient/DigitateCoral2.png deleted file mode 100644 index 7012604abdc103b0f1d80f1f98349671c9d37a6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 783 zcmV+q1MvKbP)Px%$w@>(R9J=Wm(ObxK@`V7+tilUlGe~rt)(PU3Tg#gFV%`jm4YII-aNEt5B>rE z3En(d!J~Lo(3?V`MZ_N!Aqv(@(KZH6yCmJlG$u_#vL4<};%>LCEr=WF_p&oPZ(ino z@@C#F>}qpqJDoVDoe>9j9|4e##{q~nyfFW?>s&gj0Zc!*@>hNvcDkT{rN-?}ID7pu z0N<>B$a*R=t^NG~th|1+qXpGJp~mKB0DiR0m;fP$H2{Ag06@|r6ZT!u0CI)pZTYWX zLWeKi0-&tr0cdXbyV@Nr4r&13Q||#-E3Me(e|dI$)8DCILP`ripO^r>N6y>cCl_J> zw5_fIknu(3Jo3qSByd#&h}@V2VDkQ`tAFnk8nq&DDxpUKC~n{=uYZ+B&Wf>B9=$_C z(lBBsKp-X6VWXV#E+JK$bgRGA5w+DMU#dy!UPbyUXClY!4ojsR0NKT)%`O-Y0Wd%J z)C6cE>{>@XN2t2W@rlHLS-``a-L}5x2vu_^{_!OMMrX{mYImgvG=RKy^6Hf-6X4v) z9Sz{!=Lr*PyRG$CpVYFwb8>E3yDeiF00dH@`pBUwp?O2Hzqd~!QB`|?>7+zjlB%5v z3c(f**&Hb{EnV_Hrwf^_b{mdct9J=Gr6OJ~w*yegOO47`WbLy>WkQiQ4} zc{sG`g1k>i{ntvxRY6e5qyWgSO2oO@SuyAt1YqCrX_$-9J#<*YOuB-#!Hf!c0S{f@o?yQ4(H z)joJ)2&mn`6< zyi4fR^H%`8y(l+FKklSdE+`_Ak;}mP9CPk6Cz(pV;JP5s5!%&O`V9w*6BRRhE@J=y N002ovPDHLkV1hcDX?_3z diff --git a/Tiles/SunkenSea/Ambient/DigitateCoral3.png b/Tiles/SunkenSea/Ambient/DigitateCoral3.png deleted file mode 100644 index 53d503eb5fecfe49cf491d76e6ee9b3f2b4ee0a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 715 zcmV;+0yO=JP)Px%g-Jv~R9J=WmrZL^K@^6cu?hJgZ3rc8%|a7u6(x$+g|#gz6pDgd7lK{6>F;pm zPtdi33%8YGp<>0<;6kKyWh?y<)5KI0)0m`cGA^c*WUfiHNbv^p?q=r9WagQ3-noH} zI_l_PCH6aEa(d2a=f=MSkclnI`u_gxIRWtE(T$etO^I;;9>|vf9NO=O4qA@C4ZL*o zF#t}F2Y?T*m;~?=6##*;Q2;Wr#edpR`x4SxEzL@R!1+<5Uy~Uq4GRF_R7+3XegZ(3 z(`m%d-J5KZc*PrV0V*Kr(xOz%4h;PUqvapB4p0d>`S|Bf+kUqadsnrXRQ z1ZpILi7)^^Lm>b>{eu9=?TRta8;u(6_2uUhV1VI<9%ws4)m@G}ocW*oAb#sQU_(OH z92%Os3&5*uDwit75&+rKlJQ3Q4hMl+&IHCr1%M-wkN}(Uc>sFKDo1i%Z)AOZFcJnJ zy|xZOU*V*YOZFwC$+(>X0CH}1G9N)>LVhc4v;&xqtx32(t2fVAJS_nHSyhecwN(i< zQXBCZeFFmQOsGo6a_8E2G#P)_DRt+c%!PDL=#y`z<`oIgm;m^=`&6yVV9O2Jmrye@ z?ynJbw^9)-?|cK`^3n2>@J>YlPYVb?ZRsb&|N-e zoMhq55CEaQwzc}KzN3j)Yt;o9v?>qK;F9{ x;ddfdVp>%{vcy?)MUyGyl19Jn2zB%){Q{@I;_|0!2qgdj002ovPDHLkV1nyvNW%aC 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/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/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; From ca4b7504a00cf7ea1a04082f26ff4cd7f0e1afa1 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Tue, 11 Nov 2025 21:30:37 -0800 Subject: [PATCH 2/2] rubblemaker supports newer piles & added MORE piles --- .../SunkenSea/DriftwoodScrapsEcho.cs | 18 ++++++++++ .../SunkenSea/DriftwoodWreckageEcho.cs | 18 ++++++++++ .../SunkenSea/LargeDriftwoodWreckageEcho.cs | 18 ++++++++++ .../SunkenSea/MediumDriftwoodWreckageEcho.cs | 18 ++++++++++ .../SunkenSea/MediumDunesandPileEcho.cs | 18 ++++++++++ .../SunkenSea/MediumShorePileEcho.cs | 18 ++++++++++ Tiles/Rubblemaker/SunkenSea/ShorePileEcho.cs | 18 ++++++++++ .../SunkenSea/SmallLimestoneCobblePileEcho.cs | 18 ++++++++++ Tiles/Rubblemaker/SunkenSea/SunkenShipEcho.cs | 18 ++++++++++ Tiles/SunkenSea/Ambient/DriftwoodScraps.cs | 6 +--- Tiles/SunkenSea/Ambient/DriftwoodWreckage.cs | 35 +++++++++++++++++++ .../Ambient/LargeDriftwoodWreckage.cs | 10 +++--- .../Ambient/MediumDriftwoodWreckage.cs | 35 +++++++++++++++++++ Tiles/SunkenSea/Ambient/MediumDunesandPile.cs | 16 +++------ Tiles/SunkenSea/Ambient/MediumShorePile.cs | 16 +++------ 15 files changed, 247 insertions(+), 33 deletions(-) create mode 100644 Tiles/Rubblemaker/SunkenSea/DriftwoodScrapsEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/DriftwoodWreckageEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/LargeDriftwoodWreckageEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/MediumDriftwoodWreckageEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/MediumDunesandPileEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/MediumShorePileEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/ShorePileEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/SmallLimestoneCobblePileEcho.cs create mode 100644 Tiles/Rubblemaker/SunkenSea/SunkenShipEcho.cs create mode 100644 Tiles/SunkenSea/Ambient/DriftwoodWreckage.cs create mode 100644 Tiles/SunkenSea/Ambient/MediumDriftwoodWreckage.cs 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/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/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/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(); } } }