Files
CalamityModPublic/Items/LoreItems/KnowledgeQueenBee.cs
T

49 lines
1.4 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
public class KnowledgeQueenBee : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Queen Bee");
Tooltip.SetDefault("As crude as the giant insects are they can prove useful in certain situations...given the ability to control them.\n" +
"Favorite this item to make small bees and weak hornets friendly.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = 3;
item.consumable = false;
}
public override bool CanUseItem(Player player)
{
return false;
}
public override void UpdateInventory(Player player)
{
CalamityPlayer modPlayer = player.Calamity();
if (item.favorited)
modPlayer.queenBeeLore = true;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddTile(TileID.Bookcases);
r.AddIngredient(ItemID.QueenBeeTrophy);
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
r.AddRecipe();
}
}
}