Files
CalamityModPublic/Items/LoreItems/KnowledgeUnderworld.cs
T

50 lines
1.5 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
public class KnowledgeUnderworld : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Underworld");
Tooltip.SetDefault("These obsidian and hellstone towers were once home to thousands of...'people'.\n" +
"Unfortunately for them, they were twisted by their inner demons until they were beyond saving.\n" +
"Favorite this item to prevent voodoo demons from dropping voodoo dolls.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = 4;
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.underworldLore = true;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddTile(TileID.Bookcases);
r.AddIngredient(ItemID.WallofFleshTrophy);
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
r.AddRecipe();
}
}
}