37 lines
751 B
C#
37 lines
751 B
C#
namespace RoR2;
|
|
|
|
public class ElementalRingVoidBehavior : CharacterBody.ItemBehavior
|
|
{
|
|
private void Awake()
|
|
{
|
|
base.enabled = false;
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
}
|
|
|
|
private void OnDisable()
|
|
{
|
|
if ((bool)body)
|
|
{
|
|
if (body.HasBuff(DLC1Content.Buffs.ElementalRingVoidReady))
|
|
{
|
|
body.RemoveBuff(DLC1Content.Buffs.ElementalRingVoidReady);
|
|
}
|
|
if (body.HasBuff(DLC1Content.Buffs.ElementalRingVoidCooldown))
|
|
{
|
|
body.RemoveBuff(DLC1Content.Buffs.ElementalRingVoidCooldown);
|
|
}
|
|
}
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
if ((bool)body && !body.HasBuff(DLC1Content.Buffs.ElementalRingVoidReady) && !body.HasBuff(DLC1Content.Buffs.ElementalRingVoidCooldown))
|
|
{
|
|
body.AddBuff(DLC1Content.Buffs.ElementalRingVoidReady);
|
|
}
|
|
}
|
|
}
|