Files
CalamityModPublic/Items/Fishing/FishofFlight.cs
T

39 lines
1002 B
C#

using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
public class FishofFlight : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fish of Flight");
Tooltip.SetDefault("Right click to extract souls");
SacrificeTotal = 10;
}
public override void SetDefaults()
{
Item.maxStack = 999;
Item.consumable = true;
Item.width = 30;
Item.height = 30;
Item.rare = ItemRarityID.Orange;
Item.value = Item.sellPrice(gold: 1);
}
public override bool CanRightClick()
{
return true;
}
public override void RightClick(Player player)
{
// IEntitySource my beloathed
var s = player.GetSource_OpenItem(Item.type);
DropHelper.DropItem(s, player, ItemID.SoulofFlight, 2, 5);
}
}
}