32 lines
1011 B
C#
32 lines
1011 B
C#
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace Decimation.Tiles
|
|
{
|
|
class DuneWormTrophy : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileLavaDeath[Type] = true;
|
|
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall);
|
|
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16 };
|
|
TileObjectData.addTile(Type);
|
|
dustType = 7;
|
|
disableSmartCursor = true;
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("Dune Worm Trophy");
|
|
AddMapEntry(new Color(120, 85, 60), name);
|
|
}
|
|
|
|
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
|
{
|
|
Item.NewItem(i * 16, j * 16, 48, 48, ModContent.ItemType<Items.Placeable.DuneWorm.DuneWormTrophy>());
|
|
}
|
|
}
|
|
}
|