Files
CalamityModPublic/Buffs/Alcohol/CaribbeanRumBuff.cs
T

25 lines
729 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
{
public class CaribbeanRumBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Caribbean Rum");
Description.SetDefault("Life regen, movement speed, and wing flight time boosted, you are floaty and defense is reduced");
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
canBeCleared = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().caribbeanRum = true;
}
}
}