diff --git a/Items/Placeables/Underworld/Dreadstone.cs b/Items/Placeables/Underworld/Dreadstone.cs new file mode 100644 index 0000000000..1927f25e75 --- /dev/null +++ b/Items/Placeables/Underworld/Dreadstone.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Underworld +{ + public class Dreadstone : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() => Item.ResearchUnlockCount = 100; + public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); + + } +} diff --git a/Items/Placeables/Underworld/Dreadstone.png b/Items/Placeables/Underworld/Dreadstone.png new file mode 100644 index 0000000000..3ad756b5e3 Binary files /dev/null and b/Items/Placeables/Underworld/Dreadstone.png differ diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index afef9d3c6a..978af0d1c1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -4329,3 +4329,8 @@ EutrophicGlassWall: { DisplayName: Eutrophic Glass Wall Tooltip: "" } + +Dreadstone: { + DisplayName: Dreadstone + Tooltip: "" +} diff --git a/Tiles/Underworld/Dreadstone.cs b/Tiles/Underworld/Dreadstone.cs new file mode 100644 index 0000000000..8d8a70bc47 --- /dev/null +++ b/Tiles/Underworld/Dreadstone.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CalamityMod.Sounds; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Underworld +{ + public class Dreadstone : ModTile + { + public override void SetStaticDefaults() + { + Main.tileSolid[Type] = true; + Main.tileBlockLight[Type] = true; + Main.tileBrick[Type] = true; + + CalamityUtils.MergeWithGeneral(Type); + CalamityUtils.MergeWithHell(Type); + + TileID.Sets.ChecksForMerge[Type] = true; + HitSound = SoundID.Tink; + MineResist = 2f; + MinPick = 65; + AddMapEntry(new Color(102, 65, 65)); + + this.RegisterUniversalMerge(TileID.Dirt, "CalamityMod/Tiles/Merges/AshMerge"); + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, Main.rand.NextBool(4) ? DustID.Torch : DustID.RichMahogany, 0f, 0f, 1, default, 1f); + return false; + } + } +} diff --git a/Tiles/Underworld/Dreadstone.png b/Tiles/Underworld/Dreadstone.png new file mode 100644 index 0000000000..47e2b916d8 Binary files /dev/null and b/Tiles/Underworld/Dreadstone.png differ