Files
CalamityModPublic/Items/LoreItems/Knowledge41.cs
T

37 lines
1020 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.LoreItems
{
public class Knowledge41 : ModItem
{
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.\n" +
"Place in your inventory to gain increased item grab range.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = 10;
item.consumable = false;
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 13;
}
public override bool CanUseItem(Player player)
{
return false;
}
public override void UpdateInventory(Player player)
{
CalamityPlayer modPlayer = player.GetModPlayer<CalamityPlayer>(mod);
modPlayer.polterghastLore = true;
}
}
}