58 lines
2.0 KiB
C#
58 lines
2.0 KiB
C#
using CalamityMod.Items.Placeables;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.GameContent;
|
|
using Terraria.ID;
|
|
using Terraria.Enums;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace CalamityMod.Tiles.Rubblemaker.Abyss
|
|
{
|
|
public class ShaleColumnsEcho : ModTile
|
|
{
|
|
public override string Texture => "CalamityMod/Tiles/Abyss/ShaleColumns";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileNoAttach[Type] = true;
|
|
Main.tileSolid[Type] = false;
|
|
Main.tileSolidTop[Type] = true;
|
|
TileObjectData.newTile.Width = 2;
|
|
TileObjectData.newTile.Height = 3;
|
|
TileObjectData.newTile.Origin = new Point16(1, 2);
|
|
TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
|
|
TileObjectData.newTile.UsesCustomCanPlace = true;
|
|
TileObjectData.newTile.CoordinateHeights = new int[]
|
|
{
|
|
16,
|
|
16,
|
|
16
|
|
};
|
|
TileObjectData.newTile.CoordinateWidth = 16;
|
|
TileObjectData.newTile.CoordinatePadding = 2;
|
|
TileObjectData.newTile.WaterDeath = false;
|
|
TileObjectData.newTile.LavaDeath = true;
|
|
TileObjectData.addTile(Type);
|
|
AddMapEntry(new Color(37, 24, 63));
|
|
DustType = 33;
|
|
|
|
RegisterItemDrop(ModContent.ItemType<SulphurousShale>());
|
|
FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType<SulphurousShale>(), Type, 0);
|
|
|
|
base.SetStaticDefaults();
|
|
}
|
|
|
|
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
|
{
|
|
if (Main.netMode == NetmodeID.Server)
|
|
return;
|
|
}
|
|
public override void NumDust(int i, int j, bool fail, ref int num)
|
|
{
|
|
num = fail ? 1 : 2;
|
|
}
|
|
}
|
|
}
|