Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
31 lines
997 B
C#
31 lines
997 B
C#
using CalamityMod.Items.Weapons.Melee;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ObjectData;
|
|
|
|
namespace CalamityMod.Tiles
|
|
{
|
|
public class RoxTile : ModTile
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
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);
|
|
disableSmartCursor = true;
|
|
}
|
|
|
|
public override void KillMultiTile(int i, int j, int frameX, int frameY)
|
|
{
|
|
Item.NewItem(i * 16, j * 16, 32, 16, ModContent.ItemType<Roxcalibur>());
|
|
}
|
|
}
|
|
}
|