Files
CalamityModPublic/Items/LoreItems/KnowledgeRavager.cs
T

51 lines
1.6 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 KnowledgeRavager : LoreItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Ravager");
Tooltip.SetDefault("The flesh golem constructed using twisted necromancy during the time of my conquest to counter my unstoppable forces.\n" +
"Its creators were slaughtered by it moments after its conception. It is for the best that it has been destroyed.\n" +
"Favorite this item to gain an increase to all damage, but at the cost of reduced wing flight time.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = 8;
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.ravagerLore = true;
}
public override void AddRecipes()
{
ModRecipe r = new ModRecipe(mod);
r.SetResult(this);
r.AddTile(TileID.Bookcases);
r.AddIngredient(ModContent.ItemType<RavagerTrophy>());
r.AddIngredient(ModContent.ItemType<VictoryShard>(), 10);
r.AddRecipe();
}
}
}