send message in alarm totem when you leave the sector or else thats not synced i think

This commit is contained in:
JohnCorby 2023-09-18 13:22:04 -07:00
parent 895df1fda1
commit 5878ebe19d
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class AlarmTotemPatches : QSBPatch
__instance._isPlayerVisible = false;
__instance._secondsConcealed = 0f;
Locator.GetAlarmSequenceController().DecreaseAlarmCounter();
qsbAlarmTotem.SendMessage(new SetVisibleMessage(false));
}
}
});

View File

@ -46,6 +46,7 @@ public class QSBLightSensor : OwnedWorldObject<SingleLightSensor>
{
if (AttachedObject._startIlluminated)
{
// dont need to do _illuminated cuz _startIlluminated means it already sets the thing and fires the event in Start
_locallyIlluminated = true;
OnDetectLocalLight?.Invoke();
}