r2mods/ilspy_dump/ror2_csproj/RoR2.Achievements/FindDevilAltarAchievement.cs

25 lines
450 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using EntityStates.Destructible;
namespace RoR2.Achievements;
[RegisterAchievement("FindDevilAltar", "Items.NovaOnHeal", null, 3u, null)]
public class FindDevilAltarAchievement : BaseAchievement
{
public override void OnInstall()
{
base.OnInstall();
AltarSkeletonDeath.onDeath += OnDeath;
}
public override void OnUninstall()
{
base.OnUninstall();
AltarSkeletonDeath.onDeath -= OnDeath;
}
private void OnDeath()
{
Grant();
}
}