47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.LoreItems
|
|
{
|
|
public class KnowledgeBrainofCthulhu : LoreItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("The Brain of Cthulhu");
|
|
Tooltip.SetDefault("An eye and now a brain.\n" +
|
|
"Most likely another abomination spawned from this inchoate mass of flesh.");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 20;
|
|
item.height = 20;
|
|
item.rare = ItemRarityID.Green;
|
|
item.autoReuse = false;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.useAnimation = 20;
|
|
item.useTime = 20;
|
|
item.UseSound = SoundID.Item8;
|
|
item.consumable = false;
|
|
}
|
|
|
|
public override bool CanUseItem(Player player)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe r = new ModRecipe(mod);
|
|
r.SetResult(this);
|
|
r.AddTile(TileID.Bookcases);
|
|
r.AddIngredient(ItemID.BrainofCthulhuTrophy);
|
|
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
|
|
r.AddRecipe();
|
|
}
|
|
}
|
|
}
|