r2mods/ilspy_dump/ror2_csproj/RoR2/BearVoidBehavior.cs

37 lines
679 B
C#

namespace RoR2;
public class BearVoidBehavior : CharacterBody.ItemBehavior
{
private void Awake()
{
base.enabled = false;
}
private void OnEnable()
{
}
private void OnDisable()
{
if ((bool)body)
{
if (body.HasBuff(DLC1Content.Buffs.BearVoidReady))
{
body.RemoveBuff(DLC1Content.Buffs.BearVoidReady);
}
if (body.HasBuff(DLC1Content.Buffs.BearVoidCooldown))
{
body.RemoveBuff(DLC1Content.Buffs.BearVoidCooldown);
}
}
}
private void FixedUpdate()
{
if ((bool)body && !body.HasBuff(DLC1Content.Buffs.BearVoidReady) && !body.HasBuff(DLC1Content.Buffs.BearVoidCooldown))
{
body.AddBuff(DLC1Content.Buffs.BearVoidReady);
}
}
}