From a0c311613f9555190e68dcf9d1e47c1027a45dd3 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 19 Mar 2022 20:22:08 +0000 Subject: [PATCH] update debug logs --- .../Ghosts/Actions/QSBIdentifyIntruderAction.cs | 4 ++-- QSB/EchoesOfTheEye/Ghosts/Actions/QSBSleepAction.cs | 2 +- .../Ghosts/Patches/GhostHotelDirectorPatches.cs | 9 --------- QSB/EchoesOfTheEye/Ghosts/QSBGhostAction.cs | 1 - 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBIdentifyIntruderAction.cs b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBIdentifyIntruderAction.cs index b49fe95a..3044d635 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBIdentifyIntruderAction.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBIdentifyIntruderAction.cs @@ -74,7 +74,7 @@ public class QSBIdentifyIntruderAction : QSBGhostAction protected override void OnEnterAction() { - DebugLog.DebugWrite($"{_brain.AttachedObject._name} OwO, who's this...?"); + DebugLog.DebugWrite($"{_brain.AttachedObject._name} : I saw something..."); _sawPlayerOccluded = false; _movingToSearchLocation = false; @@ -105,7 +105,7 @@ public class QSBIdentifyIntruderAction : QSBGhostAction if ((_searchNodesNearTarget && _checkTimer > 1f) || _checkTimer > 3f) { - DebugLog.DebugWrite($"{_brain.AttachedObject._name} Couldn't identify target :("); + DebugLog.DebugWrite($"{_brain.AttachedObject._name} : Couldn't identify target. :("); _effects.AttachedObject.PlayVoiceAudioNear(AudioType.Ghost_Identify_Fail, 1f); return false; } diff --git a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBSleepAction.cs b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBSleepAction.cs index 125837db..675eff4c 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Actions/QSBSleepAction.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Actions/QSBSleepAction.cs @@ -28,7 +28,7 @@ public class QSBSleepAction : QSBGhostAction { if (_data.hasWokenUp || _data.sensor.isIlluminatedByPlayer) { - DebugLog.DebugWrite($"{_brain.AttachedObject._name} mm that was a good sleep"); + DebugLog.DebugWrite($"{_brain.AttachedObject._name} : Who dares awaken me?"); _state = SleepAction.WakeState.Awake; _effects.AttachedObject.PlayDefaultAnimation(); } diff --git a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs index 5e5ca7cd..b0e87ef2 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Patches/GhostHotelDirectorPatches.cs @@ -19,7 +19,6 @@ internal class GhostHotelDirectorPatches : QSBPatch [HarmonyPatch(nameof(GhostHotelDirector.OnDestroy))] public static bool OnDestroy(GhostHotelDirector __instance) { - DebugLog.DebugWrite($"ON DESTROY"); GhostDirector_OnDestroy_Stub(__instance); __instance._hotelProjector.OnProjectorExtinguished -= __instance.OnHotelProjectorExtinguished; @@ -33,12 +32,4 @@ internal class GhostHotelDirectorPatches : QSBPatch return false; } - - [HarmonyPrefix] - [HarmonyPatch(typeof(GhostDirector), nameof(GhostDirector.WakeGhosts))] - public static bool WakeGhosts(GhostDirector __instance) - { - DebugLog.DebugWrite($"WAKE GHOSTS"); - return true; - } } diff --git a/QSB/EchoesOfTheEye/Ghosts/QSBGhostAction.cs b/QSB/EchoesOfTheEye/Ghosts/QSBGhostAction.cs index d37f40f8..a7f3aa96 100644 --- a/QSB/EchoesOfTheEye/Ghosts/QSBGhostAction.cs +++ b/QSB/EchoesOfTheEye/Ghosts/QSBGhostAction.cs @@ -101,7 +101,6 @@ public abstract class QSBGhostAction public void ExitAction() { - DebugLog.DebugWrite($"{_brain.AttachedObject._name} ExitAction"); this._running = false; this.OnExitAction(); }