33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using CalamityMod.Items.Weapons.Melee;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace CalamityMod.Tiles
|
|
{
|
|
public class RoxTile : ModTile
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileNoAttach[Type] = true;
|
|
Main.tileSpelunker[Type] = true;
|
|
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x4);
|
|
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 };
|
|
TileObjectData.addTile(Type);
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("Roxcalibur");
|
|
AddMapEntry(new Color(240, 77, 7), name);
|
|
TileID.Sets.DisableSmartCursor[Type] = true;
|
|
}
|
|
|
|
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
|
{
|
|
Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType<Roxcalibur>());
|
|
}
|
|
}
|
|
}
|