35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace CalamityMod.Tiles
|
|
{
|
|
class ProfanedTable : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Main.tileSolidTop[Type] = true;
|
|
Main.tileLighted[Type] = true;
|
|
Main.tileFrameImportant[Type] = true;
|
|
Main.tileNoAttach[Type] = true;
|
|
Main.tileTable[Type] = true;
|
|
Main.tileLavaDeath[Type] = true;
|
|
|
|
AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
|
|
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
|
TileObjectData.addTile(Type);
|
|
ModTranslation name = CreateMapEntryName();
|
|
name.SetDefault("Profaned Table");
|
|
AddMapEntry(new Color(238, 145, 105), name);
|
|
adjTiles = new int[] { TileID.Tables };
|
|
}
|
|
|
|
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
|
{
|
|
Item.NewItem(i * 16, j * 16, 16, 32, mod.ItemType("ProfanedTable"));
|
|
}
|
|
}
|
|
}
|