Allow big bang to kill you at the eye

This commit is contained in:
Noah Pilarski 2022-09-03 20:51:07 -04:00
parent bb014b689a
commit da6c7b79a1

View File

@ -8,9 +8,9 @@ namespace NewHorizons.Patches
// Funny eye of the universe stuff
[HarmonyPrefix]
[HarmonyPatch(typeof(DeathManager), nameof(DeathManager.KillPlayer))]
public static bool DeathManager_KillPlayer()
public static bool DeathManager_KillPlayer(DeathType deathType)
{
return (Main.Instance.CurrentStarSystem != "EyeOfTheUniverse");
return Main.Instance.CurrentStarSystem != "EyeOfTheUniverse" || deathType == DeathType.BigBang;
}
private static void SwitchToDefaultIfAtEyeGoingToSS(OWScene scene)