29 lines
989 B
C#
29 lines
989 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace Decimation.Content.Tiles
|
|
{
|
|
class DuneWyrmTrophy : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileLavaDeath[Type] = true;
|
|
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall);
|
|
TileObjectData.newTile.CoordinateHeights = new[] {16, 16, 16};
|
|
TileObjectData.addTile(Type);
|
|
dustType = 7;
|
|
disableSmartCursor = true;
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("The Great Dune Wyrm 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.DuneWyrm.DuneWyrmTrophy>());
|
|
}
|
|
}
|
|
} |