Rijam_RijamsMod/Buffs/Other/WarriorEnergy.cs
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace RijamsMod.Buffs.Other
{
	public class WarriorEnergy : ModBuff
	{
		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.GetAttackSpeed(DamageClass.Generic) += 0.05f;
			player.GetDamage(DamageClass.Generic) += 0.1f;
			player.GetCritChance(DamageClass.Generic) += 10f;
			player.GetModPlayer<RijamsModPlayer>().criticalHitAdditionalDamage += 0.25f;
		}
	}
}