Files
CalamityModPublic/Items/Potions/Alcohol/Rum.cs
T

37 lines
1.1 KiB
C#

using CalamityMod.Buffs.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions.Alcohol
{
public class Rum : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 5;
DisplayName.SetDefault("Rum");
Tooltip.SetDefault(@"Sweet and potent, just how I like it
Boosts life regen by 2 and movement speed by 10%
Reduces defense by 5%");
}
public override void SetDefaults()
{
Item.width = 28;
Item.height = 18;
Item.useTurn = true;
Item.maxStack = 30;
Item.rare = ItemRarityID.LightRed;
Item.useAnimation = 17;
Item.useTime = 17;
Item.useStyle = ItemUseStyleID.DrinkLiquid;
Item.UseSound = SoundID.Item3;
Item.consumable = true;
Item.buffType = ModContent.BuffType<RumBuff>();
Item.buffTime = CalamityUtils.SecondsToFrames(480f);
Item.value = Item.buyPrice(0, 1, 30, 0);
}
}
}