Added the drill itself to the Cavern Lab
This commit is contained in:
1 parent
cffc18bbc5
commit
b80abc81eb
3 files changed
+33
No files matched your search
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
using CalamityMod.Items.Mounts;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.DraedonStructures
|
||||
{
|
||||
public class OnyxExcavatorTile : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
Main.tileSpelunker[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x4);
|
||||
TileObjectData.newTile.Width = 8;
|
||||
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 };
|
||||
TileObjectData.addTile(Type);
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
name.SetDefault("Onyx Excavator");
|
||||
AddMapEntry(new Color(128, 0, 128), 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<OnyxExcavatorKey>());
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Reference in new issue
Block a user