Files
CalamityModPublic/Items/LoreItems/KnowledgePolterghast.cs
T

44 lines
1.4 KiB
C#

using CalamityMod.CalPlayer;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Furniture.Trophies;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
public class KnowledgePolterghast : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Polterghast");
Tooltip.SetDefault("A creature born of hatred and anger, formed by countless human souls with all of their energy entirely devoted to consuming others.\n" +
"It seems a waste to have had such a potent source of power ravage mindlessly through these empty halls.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = ItemRarityID.Red;
item.consumable = false;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
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(ModContent.ItemType<PolterghastTrophy>());
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
r.AddRecipe();
}
}
}