update debug logs

This commit is contained in:
Mister_Nebula 2022-03-19 20:22:08 +00:00 committed by JohnCorby
parent e2e1f9ae71
commit a0c311613f
4 changed files with 3 additions and 13 deletions

View File

@ -74,7 +74,7 @@ public class QSBIdentifyIntruderAction : QSBGhostAction
protected override void OnEnterAction() protected override void OnEnterAction()
{ {
DebugLog.DebugWrite($"{_brain.AttachedObject._name} OwO, who's this...?"); DebugLog.DebugWrite($"{_brain.AttachedObject._name} : I saw something...");
_sawPlayerOccluded = false; _sawPlayerOccluded = false;
_movingToSearchLocation = false; _movingToSearchLocation = false;
@ -105,7 +105,7 @@ public class QSBIdentifyIntruderAction : QSBGhostAction
if ((_searchNodesNearTarget && _checkTimer > 1f) || _checkTimer > 3f) 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); _effects.AttachedObject.PlayVoiceAudioNear(AudioType.Ghost_Identify_Fail, 1f);
return false; return false;
} }

View File

@ -28,7 +28,7 @@ public class QSBSleepAction : QSBGhostAction
{ {
if (_data.hasWokenUp || _data.sensor.isIlluminatedByPlayer) 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; _state = SleepAction.WakeState.Awake;
_effects.AttachedObject.PlayDefaultAnimation(); _effects.AttachedObject.PlayDefaultAnimation();
} }

View File

@ -19,7 +19,6 @@ internal class GhostHotelDirectorPatches : QSBPatch
[HarmonyPatch(nameof(GhostHotelDirector.OnDestroy))] [HarmonyPatch(nameof(GhostHotelDirector.OnDestroy))]
public static bool OnDestroy(GhostHotelDirector __instance) public static bool OnDestroy(GhostHotelDirector __instance)
{ {
DebugLog.DebugWrite($"ON DESTROY");
GhostDirector_OnDestroy_Stub(__instance); GhostDirector_OnDestroy_Stub(__instance);
__instance._hotelProjector.OnProjectorExtinguished -= __instance.OnHotelProjectorExtinguished; __instance._hotelProjector.OnProjectorExtinguished -= __instance.OnHotelProjectorExtinguished;
@ -33,12 +32,4 @@ internal class GhostHotelDirectorPatches : QSBPatch
return false; return false;
} }
[HarmonyPrefix]
[HarmonyPatch(typeof(GhostDirector), nameof(GhostDirector.WakeGhosts))]
public static bool WakeGhosts(GhostDirector __instance)
{
DebugLog.DebugWrite($"WAKE GHOSTS");
return true;
}
} }

View File

@ -101,7 +101,6 @@ public abstract class QSBGhostAction
public void ExitAction() public void ExitAction()
{ {
DebugLog.DebugWrite($"{_brain.AttachedObject._name} ExitAction");
this._running = false; this._running = false;
this.OnExitAction(); this.OnExitAction();
} }