r2mods/ilspy_dump/ror2_csproj/RoR2.Achievements/MeridianEventTriggerAchieve...

27 lines
505 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using EntityStates.FalseSonBoss;
namespace RoR2.Achievements;
public class MeridianEventTriggerAchievement : BaseAchievement
{
public override void OnInstall()
{
base.OnInstall();
SkyJumpDeathState.falseSonDeathEvent += OnMeridianEventTriggerActivated;
}
public override void OnUninstall()
{
base.OnUninstall();
SkyJumpDeathState.falseSonDeathEvent -= OnMeridianEventTriggerActivated;
}
private void OnMeridianEventTriggerActivated()
{
if (base.isUserAlive)
{
Grant();
}
}
}