mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
funny moment for eye
This commit is contained in:
parent
9309d6e25e
commit
16340b06e8
@ -3,7 +3,6 @@ using QSB.DeathSync.Messages;
|
|||||||
using QSB.Messaging;
|
using QSB.Messaging;
|
||||||
using QSB.Patches;
|
using QSB.Patches;
|
||||||
using QSB.Player;
|
using QSB.Player;
|
||||||
using QSB.ShipSync.TransformSync;
|
|
||||||
using QSB.Utility;
|
using QSB.Utility;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -115,6 +114,12 @@ public class DeathPatches : QSBPatch
|
|||||||
[HarmonyPatch(typeof(DeathManager), nameof(DeathManager.KillPlayer))]
|
[HarmonyPatch(typeof(DeathManager), nameof(DeathManager.KillPlayer))]
|
||||||
private static bool DeathManager_KillPlayer(DeathManager __instance, DeathType deathType)
|
private static bool DeathManager_KillPlayer(DeathManager __instance, DeathType deathType)
|
||||||
{
|
{
|
||||||
|
// funny moment for eye
|
||||||
|
if (QSBSceneManager.CurrentScene != OWScene.SolarSystem)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Original(__instance, deathType);
|
Original(__instance, deathType);
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -163,7 +168,7 @@ public class DeathPatches : QSBPatch
|
|||||||
PlayerData.SetPersistentCondition("THERE_IS_BUT_VOID", true);
|
PlayerData.SetPersistentCondition("THERE_IS_BUT_VOID", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((TimeLoop.GetLoopCount() != 1 && TimeLoop.GetSecondsElapsed() < 60f || TimeLoop.GetLoopCount() == 1 && Time.timeSinceLevelLoad < 60f && !TimeLoop.IsTimeFlowing()) && deathType != DeathType.Meditation && LoadManager.GetCurrentScene() == OWScene.SolarSystem)
|
if (((TimeLoop.GetLoopCount() != 1 && TimeLoop.GetSecondsElapsed() < 60f) || (TimeLoop.GetLoopCount() == 1 && Time.timeSinceLevelLoad < 60f && !TimeLoop.IsTimeFlowing())) && deathType != DeathType.Meditation && LoadManager.GetCurrentScene() == OWScene.SolarSystem)
|
||||||
{
|
{
|
||||||
Achievements.Earn(Achievements.Type.GONE_IN_60_SECONDS);
|
Achievements.Earn(Achievements.Type.GONE_IN_60_SECONDS);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user