diff --git a/Items/Placeables/Acidwood.cs b/Items/Placeables/Acidwood.cs index e8600b2391..c508defe0e 100644 --- a/Items/Placeables/Acidwood.cs +++ b/Items/Placeables/Acidwood.cs @@ -2,6 +2,7 @@ using CalamityMod.Tiles.Abyss; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Items.Placeables.Walls; namespace CalamityMod.Items.Placeables { @@ -32,6 +33,10 @@ namespace CalamityMod.Items.Placeables CreateRecipe(). AddIngredient(2). Register(); + + CreateRecipe(1). + AddIngredient(ModContent.ItemType(), 4). + AddTile(TileID.WorkBenches).Register(); } } } diff --git a/Items/Placeables/Walls/AcidwoodWallItem.cs b/Items/Placeables/Walls/AcidwoodWallItem.cs new file mode 100644 index 0000000000..0fca80c89b --- /dev/null +++ b/Items/Placeables/Walls/AcidwoodWallItem.cs @@ -0,0 +1,37 @@ +using Terraria.ModLoader; +using WallTiles = CalamityMod.Walls; +using Terraria.ID; + +namespace CalamityMod.Items.Placeables.Walls +{ + public class AcidwoodWallItem : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Acidwood Wall"); + SacrificeTotal = 400; + } + + public override void SetDefaults() + { + Item.width = 18; + Item.height = 18; + Item.maxStack = 999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 7; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.createWall = ModContent.WallType(); + } + + public override void AddRecipes() + { + CreateRecipe(4). + AddIngredient(ModContent.ItemType()). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/Walls/AcidwoodWallItem.png b/Items/Placeables/Walls/AcidwoodWallItem.png new file mode 100644 index 0000000000..b737bcc19e Binary files /dev/null and b/Items/Placeables/Walls/AcidwoodWallItem.png differ diff --git a/Walls/AcidwoodWall.cs b/Walls/AcidwoodWall.cs new file mode 100644 index 0000000000..68d7ddc78a --- /dev/null +++ b/Walls/AcidwoodWall.cs @@ -0,0 +1,27 @@ +using Microsoft.Xna.Framework; +using Terraria.ModLoader; +using CalamityMod.Items.Placeables.Walls; +using Terraria; +using Terraria.ID; + +namespace CalamityMod.Walls +{ + public class AcidwoodWall : ModWall + { + public override void SetStaticDefaults() + { + Main.wallHouse[Type] = true; + ItemDrop = ModContent.ItemType(); + HitSound = SoundID.Dig; + AddMapEntry(new Color(96, 69, 39)); + } + + public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, 7, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + } +} diff --git a/Walls/AcidwoodWall.png b/Walls/AcidwoodWall.png new file mode 100644 index 0000000000..efc5804fd6 Binary files /dev/null and b/Walls/AcidwoodWall.png differ