using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;
using Terraria.DataStructures;
using Terraria.Enums;
namespace PikaMod.Tiles {
public class HallowedAltar : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = true;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.Width = 3;
TileObjectData.newTile.Height = 2;
TileObjectData.newTile.Origin = new Point16(1, 0);
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
TileObjectData.newTile.CoordinateWidth = 52;
TileObjectData.newTile.CoordinatePadding = 2;
TileObjectData.newTile.UsesCustomCanPlace = true;
TileObjectData.addTile(Type);
mapColor = new Color(200, 200, 200);
mapName = "Hallowed Altar";
}
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, 6, 0f, 0f, 0, default(Color), 1.6f);
return false;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 32, 16, mod.ItemType("HallowedAltar"));
}
}}