28 lines
901 B
C#
28 lines
901 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Buffs.StatBuffs
|
|
{
|
|
public class KamiBuff : ModBuff
|
|
{
|
|
public const float RunSpeedBoost = 0.15f;
|
|
public const float RunAccelerationBoost = 0.15f;
|
|
public override void SetDefaults()
|
|
{
|
|
DisplayName.SetDefault("Kami Injection");
|
|
Description.SetDefault("Increased max movement speed, acceleration and damage");
|
|
Main.debuff[Type] = false;
|
|
Main.pvpBuff[Type] = true;
|
|
Main.buffNoSave[Type] = true;
|
|
longerExpertDebuff = false;
|
|
}
|
|
|
|
public override void Update(Player player, ref int buffIndex)
|
|
{
|
|
player.Calamity().kamiBoost = true;
|
|
if (player.buffTime[buffIndex] == 1)
|
|
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/YanmeiKnifeExpire"), player.Center);
|
|
}
|
|
}
|
|
}
|