r2mods/ilspy_dump/ror2_csproj/EntityStates.ScavMonster/BaseSitState.cs

26 lines
486 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine.Networking;
namespace EntityStates.ScavMonster;
public class BaseSitState : BaseState
{
public override void OnEnter()
{
base.OnEnter();
if (NetworkServer.active && (bool)base.characterBody)
{
base.characterBody.AddBuff(RoR2Content.Buffs.ArmorBoost);
}
}
public override void OnExit()
{
if (NetworkServer.active && (bool)base.characterBody)
{
base.characterBody.RemoveBuff(RoR2Content.Buffs.ArmorBoost);
}
base.OnExit();
}
}