Files
CalamityModPublic/Items/LoreItems/KnowledgePlantera.cs
T
2019-09-14 23:29:40 +02:00

38 lines
944 B
C#

using Terraria;
using Terraria.ModLoader;
using CalamityMod.CalPlayer;
namespace CalamityMod.Items.LoreItems
{
public class KnowledgePlantera : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Plantera");
Tooltip.SetDefault("Well done, you killed a plant.\n" +
"It was used as a vessel to house the spirits of those unfortunate enough to find their way down here.\n" +
"I wish you luck in dealing with the fallout.\n" +
"Place in your inventory to gain a boost to your item grab range.");
}
public override void SetDefaults()
{
item.width = 20;
item.height = 20;
item.rare = 6;
item.consumable = false;
}
public override bool CanUseItem(Player player)
{
return false;
}
public override void UpdateInventory(Player player)
{
CalamityPlayer modPlayer = player.GetCalamityPlayer();
modPlayer.planteraLore = true;
}
}
}