r2mods/ilspy_dump/ror2_csproj/EntityStates.Toolbot/NailgunSpinDown.cs

39 lines
717 B
C#

using RoR2;
namespace EntityStates.Toolbot;
public class NailgunSpinDown : BaseNailgunState
{
public static string spinDownSound;
public static float baseDuration;
protected override float GetBaseDuration()
{
return baseDuration;
}
public override void OnEnter()
{
base.OnEnter();
Util.PlayAttackSpeedSound(spinDownSound, base.gameObject, attackSpeedStat);
}
public override void FixedUpdate()
{
base.FixedUpdate();
if (base.fixedAge >= duration && base.isAuthority)
{
outer.SetNextState(new NailgunFinalBurst
{
activatorSkillSlot = base.activatorSkillSlot
});
}
}
public override InterruptPriority GetMinimumInterruptPriority()
{
return InterruptPriority.Skill;
}
}