38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using CalamityMod.CalPlayer;
|
|
using Terraria; using CalamityMod.Projectiles; using Terraria.ModLoader;
|
|
using Terraria.ModLoader; using CalamityMod.Buffs; using CalamityMod.Items; using CalamityMod.NPCs; using CalamityMod.Projectiles; using CalamityMod.Tiles; using CalamityMod.Walls;
|
|
|
|
namespace CalamityMod.Items
|
|
{
|
|
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.Calamity();
|
|
modPlayer.planteraLore = true;
|
|
}
|
|
}
|
|
}
|