Added a draedon hologram placeable item
This commit is contained in:
1 parent
701c8893a2
commit
b2a0e5c855
3 files changed
+33
-1
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using CalamityMod.Tiles;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture
|
||||
{
|
||||
public class HolographicDisplayBox : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Holographic Display Box");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 22;
|
||||
item.height = 32;
|
||||
item.maxStack = 99;
|
||||
item.useTurn = true;
|
||||
item.autoReuse = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 10;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.consumable = true;
|
||||
item.value = Item.buyPrice(0, 0, 0, 0);
|
||||
item.rare = 3;
|
||||
item.createTile = ModContent.TileType<DraedonHologram>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 632 B |
@@ -22,7 +22,7 @@ namespace CalamityMod.Tiles
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
|
||||
TileObjectData.newTile.Height = 7;
|
||||
TileObjectData.newTile.Origin = new Point16(2, 6);
|
||||
TileObjectData.newTile.Origin = new Point16(3, 6);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[TileObjectData.newTile.Height];
|
||||
TileObjectData.newTile.CoordinatePadding = 0;
|
||||
for (int i = 0; i < TileObjectData.newTile.CoordinateHeights.Length; i++)
|
||||
@@ -33,6 +33,7 @@ namespace CalamityMod.Tiles
|
||||
animationFrameHeight = 112;
|
||||
|
||||
soundType = SoundID.Tink;
|
||||
dustType = 229;
|
||||
minPick = 100;
|
||||
AddMapEntry(new Color(99, 131, 199));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user