mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
Update AlarmTotemPatches.cs
This commit is contained in:
parent
ee2d33f081
commit
691c7c390a
@ -87,7 +87,7 @@ public class AlarmTotemPatches : QSBPatch
|
||||
|
||||
var isPlayerVisible = __instance._isPlayerVisible;
|
||||
__instance._isPlayerVisible = __instance.CheckPlayerVisible();
|
||||
if (!isPlayerVisible && __instance._isPlayerVisible)
|
||||
if (__instance._isPlayerVisible && !isPlayerVisible)
|
||||
{
|
||||
Locator.GetAlarmSequenceController().IncreaseAlarmCounter();
|
||||
__instance._secondsConcealed = 0f;
|
||||
@ -97,7 +97,8 @@ public class AlarmTotemPatches : QSBPatch
|
||||
GlobalMessenger.FireEvent("AlarmTotemTriggered");
|
||||
qsbAlarmTotem.SendMessage(new SetVisibleMessage(true));
|
||||
}
|
||||
else if (isPlayerVisible && !__instance._isPlayerVisible)
|
||||
|
||||
if (isPlayerVisible && !__instance._isPlayerVisible)
|
||||
{
|
||||
Locator.GetAlarmSequenceController().DecreaseAlarmCounter();
|
||||
__instance._secondsConcealed = 0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user