diff --git a/Items/Placeables/CyanCoral.cs b/Items/Placeables/CyanCoral.cs new file mode 100644 index 0000000000..b5d7d106bd --- /dev/null +++ b/Items/Placeables/CyanCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class CyanCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/CyanCoral.png b/Items/Placeables/CyanCoral.png new file mode 100644 index 0000000000..3f705ee85b Binary files /dev/null and b/Items/Placeables/CyanCoral.png differ diff --git a/Items/Placeables/MagentaCoral.cs b/Items/Placeables/MagentaCoral.cs new file mode 100644 index 0000000000..a78ffb95c0 --- /dev/null +++ b/Items/Placeables/MagentaCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class MagentaCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/MagentaCoral.png b/Items/Placeables/MagentaCoral.png new file mode 100644 index 0000000000..1f394b1b66 Binary files /dev/null and b/Items/Placeables/MagentaCoral.png differ diff --git a/Items/Placeables/OrangeCoral.cs b/Items/Placeables/OrangeCoral.cs new file mode 100644 index 0000000000..d0dc22fe52 --- /dev/null +++ b/Items/Placeables/OrangeCoral.cs @@ -0,0 +1,37 @@ +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables +{ + public class OrangeCoral : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Item.ResearchUnlockCount = 100; + } + + public override void SetDefaults() + { + Item.width = 12; + Item.height = 12; + Item.rare = ItemRarityID.Blue; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createTile = ModContent.TileType(); + } + + //public override void AddRecipes() + //{ + // CreateRecipe(4). + // AddIngredient(ItemID.PinkPearl). + // AddTile(TileID.HeavyWorkBench). + // Register(); + //} + } +} diff --git a/Items/Placeables/OrangeCoral.png b/Items/Placeables/OrangeCoral.png new file mode 100644 index 0000000000..cfe3fccb6a Binary files /dev/null and b/Items/Placeables/OrangeCoral.png differ diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index 887a7ef026..c9774bea4d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -3508,3 +3508,18 @@ WaterTurret: { Cannot attack while a boss is alive ''' } + +CyanCoral: { + DisplayName: Cyan Coral + Tooltip: "" +} + +MagentaCoral: { + DisplayName: Magenta Coral + Tooltip: "" +} + +OrangeCoral: { + DisplayName: Orange Coral + Tooltip: "" +} diff --git a/Tiles/SunkenSea/CyanCoral.cs b/Tiles/SunkenSea/CyanCoral.cs new file mode 100644 index 0000000000..365037dd53 --- /dev/null +++ b/Tiles/SunkenSea/CyanCoral.cs @@ -0,0 +1,56 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class CyanCoral : ModTile + { + public byte[,] tileAdjacency; + public byte[,] secondTileAdjacency; + public byte[,] thirdTileAdjacency; + public byte[,] fourthTileAdjacency; + + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + TileID.Sets.HasSlopeFrames[Type] = true; + + TileID.Sets.ChecksForMerge[Type] = true; + HitSound = SoundID.Shatter; + DustType = 119; + AddMapEntry(new Color(204, 143, 174)); + Main.tileShine2[Type] = true; + + TileID.Sets.CanBeDugByShovel[Type] = true; + + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out tileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out secondTileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out thirdTileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out fourthTileAdjacency); + } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + //TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/Merges/TimelessSandMerge"); + //TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/Merges/ShellstoneMerge"); + TileFraming.DrawUniversalMergeFrames(i, j, thirdTileAdjacency, "CalamityMod/Tiles/Merges/EutrophicSandMerge"); + TileFraming.DrawUniversalMergeFrames(i, j, fourthTileAdjacency, "CalamityMod/Tiles/Merges/NavystoneMerge"); + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out tileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out secondTileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out thirdTileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out fourthTileAdjacency[i, j]); + return TileFraming.BetterGemsparkFraming(i, j, resetFrame); + } + } +} diff --git a/Tiles/SunkenSea/CyanCoral.png b/Tiles/SunkenSea/CyanCoral.png new file mode 100644 index 0000000000..318df78b1c Binary files /dev/null and b/Tiles/SunkenSea/CyanCoral.png differ diff --git a/Tiles/SunkenSea/MagentaCoral.cs b/Tiles/SunkenSea/MagentaCoral.cs new file mode 100644 index 0000000000..7a5169e015 --- /dev/null +++ b/Tiles/SunkenSea/MagentaCoral.cs @@ -0,0 +1,56 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class MagentaCoral : ModTile + { + public byte[,] tileAdjacency; + public byte[,] secondTileAdjacency; + public byte[,] thirdTileAdjacency; + public byte[,] fourthTileAdjacency; + + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + TileID.Sets.HasSlopeFrames[Type] = true; + + TileID.Sets.ChecksForMerge[Type] = true; + HitSound = SoundID.Shatter; + DustType = 119; + AddMapEntry(new Color(204, 143, 174)); + Main.tileShine2[Type] = true; + + TileID.Sets.CanBeDugByShovel[Type] = true; + + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out tileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out secondTileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out thirdTileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out fourthTileAdjacency); + } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + //TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/Merges/TimelessSandMerge"); + //TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/Merges/ShellstoneMerge"); + TileFraming.DrawUniversalMergeFrames(i, j, thirdTileAdjacency, "CalamityMod/Tiles/Merges/EutrophicSandMerge"); + TileFraming.DrawUniversalMergeFrames(i, j, fourthTileAdjacency, "CalamityMod/Tiles/Merges/NavystoneMerge"); + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out tileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out secondTileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out thirdTileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out fourthTileAdjacency[i, j]); + return TileFraming.BetterGemsparkFraming(i, j, resetFrame); + } + } +} diff --git a/Tiles/SunkenSea/MagentaCoral.png b/Tiles/SunkenSea/MagentaCoral.png new file mode 100644 index 0000000000..e02ef96fce Binary files /dev/null and b/Tiles/SunkenSea/MagentaCoral.png differ diff --git a/Tiles/SunkenSea/OrangeCoral.cs b/Tiles/SunkenSea/OrangeCoral.cs new file mode 100644 index 0000000000..fc1a490e9e --- /dev/null +++ b/Tiles/SunkenSea/OrangeCoral.cs @@ -0,0 +1,56 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; +using Terraria.ID; +using Microsoft.Xna.Framework.Graphics; + +namespace CalamityMod.Tiles.SunkenSea +{ + public class OrangeCoral : ModTile + { + public byte[,] tileAdjacency; + public byte[,] secondTileAdjacency; + public byte[,] thirdTileAdjacency; + public byte[,] fourthTileAdjacency; + + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + + TileID.Sets.HasSlopeFrames[Type] = true; + + TileID.Sets.ChecksForMerge[Type] = true; + HitSound = SoundID.Shatter; + DustType = 119; + AddMapEntry(new Color(204, 143, 174)); + Main.tileShine2[Type] = true; + + TileID.Sets.CanBeDugByShovel[Type] = true; + + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out tileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out secondTileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out thirdTileAdjacency); + TileFraming.SetUpUniversalMerge(Type, ModContent.TileType(), out fourthTileAdjacency); + } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + //TileFraming.DrawUniversalMergeFrames(i, j, tileAdjacency, "CalamityMod/Tiles/Merges/TimelessSandMerge"); + //TileFraming.DrawUniversalMergeFrames(i, j, secondTileAdjacency, "CalamityMod/Tiles/Merges/ShellstoneMerge"); + TileFraming.DrawUniversalMergeFrames(i, j, thirdTileAdjacency, "CalamityMod/Tiles/Merges/EutrophicSandMerge"); + TileFraming.DrawUniversalMergeFrames(i, j, fourthTileAdjacency, "CalamityMod/Tiles/Merges/NavystoneMerge"); + } + + public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) + { + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out tileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out secondTileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out thirdTileAdjacency[i, j]); + TileFraming.GetAdjacencyData(i, j, ModContent.TileType(), out fourthTileAdjacency[i, j]); + return TileFraming.BetterGemsparkFraming(i, j, resetFrame); + } + } +} diff --git a/Tiles/SunkenSea/OrangeCoral.png b/Tiles/SunkenSea/OrangeCoral.png new file mode 100644 index 0000000000..182cfa6a7d Binary files /dev/null and b/Tiles/SunkenSea/OrangeCoral.png differ