46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Tiles.DraedonStructures;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Placeables.DraedonStructures
|
|
{
|
|
public class SecurityChest : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Security Chest");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 32;
|
|
item.height = 26;
|
|
item.maxStack = 99;
|
|
item.useTurn = true;
|
|
item.autoReuse = true;
|
|
item.useAnimation = 15;
|
|
item.useTime = 14;
|
|
item.rare = ItemRarityID.Orange;
|
|
item.Calamity().customRarity = CalamityRarity.DraedonRust;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.consumable = true;
|
|
item.value = 500;
|
|
item.createTile = ModContent.TileType<SecurityChestTile>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<MysteriousCircuitry>(), 4);
|
|
recipe.AddIngredient(ModContent.ItemType<DubiousPlating>(), 4);
|
|
recipe.AddIngredient(ModContent.ItemType<Items.Placeables.DraedonStructures.LaboratoryPlating>(), 10);
|
|
recipe.AddIngredient(ItemID.IronBar, 2);
|
|
recipe.anyIronBar = true;
|
|
recipe.AddTile(TileID.Anvils);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|