r2mods/ilspy_dump/ror2_csproj/EntityStates.Bandit2.Weapon/FireSidearmSkullRevolver.cs

19 lines
483 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
namespace EntityStates.Bandit2.Weapon;
public class FireSidearmSkullRevolver : BaseFireSidearmRevolverState
{
protected override void ModifyBullet(BulletAttack bulletAttack)
{
base.ModifyBullet(bulletAttack);
int num = 0;
if ((bool)base.characterBody)
{
num = base.characterBody.GetBuffCount(RoR2Content.Buffs.BanditSkull);
}
bulletAttack.damage *= 1f + 0.1f * (float)num;
bulletAttack.damageType |= (DamageTypeCombo)DamageType.GiveSkullOnKill;
}
}