mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 18:40:03 +00:00
update debug logs
This commit is contained in:
parent
e2e1f9ae71
commit
a0c311613f
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user