Files
CalamityModPublic/Buffs/StatBuffs/KamiBuff.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

27 lines
764 B
C#

using CalamityMod.Items.Weapons.Typeless;
using Terraria;
using Terraria.Audio;
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 SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().kamiBoost = true;
if (player.buffTime[buffIndex] == 1)
SoundEngine.PlaySound(YanmeisKnife.ExpireSound, player.Center);
}
}
}