Update AlarmTotemPatches.cs

This commit is contained in:
_nebula 2023-11-13 22:45:11 +00:00
parent ee2d33f081
commit 691c7c390a

View File

@ -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;