mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
19 lines
610 B
C#
19 lines
610 B
C#
namespace NewHorizons.OtherMods.AchievementsPlus.NH
|
|
{
|
|
public static class EatenOutsideBrambleAchievement
|
|
{
|
|
public static readonly string UNIQUE_ID = "NH_EATEN_OUTSIDE_BRAMBLE";
|
|
|
|
public static void Init()
|
|
{
|
|
AchievementHandler.Register(UNIQUE_ID, false, Main.Instance);
|
|
GlobalMessenger<DeathType>.AddListener("PlayerDeath", OnPlayerDeath);
|
|
}
|
|
|
|
public static void OnPlayerDeath(DeathType death)
|
|
{
|
|
if (death == DeathType.Digestion && !PlayerState.InBrambleDimension()) AchievementHandler.Earn(UNIQUE_ID);
|
|
}
|
|
}
|
|
}
|