32 lines
949 B
C#
32 lines
949 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Potions
|
|
{
|
|
public class DeliciousMeat : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Potions";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 5;
|
|
}
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 32;
|
|
Item.height = 30;
|
|
Item.value = Item.buyPrice(0, 0, 50, 0);
|
|
Item.rare = ItemRarityID.Pink;
|
|
Item.maxStack = 9999;
|
|
Item.consumable = true;
|
|
Item.useAnimation = 17;
|
|
Item.useTime = 17;
|
|
Item.UseSound = SoundID.Item2;
|
|
Item.useStyle = ItemUseStyleID.EatFood;
|
|
Item.useTurn = true;
|
|
Item.buffType = BuffID.WellFed2;
|
|
Item.buffTime = CalamityUtils.SecondsToFrames(1800f);
|
|
}
|
|
}
|
|
}
|