From ff4916df26111bd6ddd5dc1072e0b26b451dd68c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 21 Jun 2026 18:26:58 +0100 Subject: [PATCH] Read observed target contacts only from daemon --- Aetheria.State.Verify/Program.cs | 5 ++++- Assets/Scripts/Gameplay/ActionGameManager.cs | 10 +++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 769b4bc6a..aa009168b 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -7829,7 +7829,10 @@ static void RequireMainMenuContinueRunState(string root) "foreach (var entity in DockedEntity.Children)", "CurrentEntity != null && CurrentEntity.Parent == null", "CurrentEntity !=null && CurrentEntity.Parent==null", - "CurrentEntity == null || CurrentEntity.Parent != null" + "CurrentEntity == null || CurrentEntity.Parent != null", + "return observer?.Target.Value;", + "observer.EntityInfoGathered.TryGetValue(target, out var infoGathered)", + "return target != null && target.IsHostileTo(observer);" }; var forbiddenGameplayHits = forbiddenGameplaySymbols diff --git a/Assets/Scripts/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs index 6492567cc..7df490e48 100644 --- a/Assets/Scripts/Gameplay/ActionGameManager.cs +++ b/Assets/Scripts/Gameplay/ActionGameManager.cs @@ -3236,7 +3236,7 @@ public class ActionGameManager : MonoBehaviour return targetEntity; } - return observer?.Target.Value; + return null; } private float GetObservedInfoGathered(Entity observer, Entity target) @@ -3244,11 +3244,7 @@ public class ActionGameManager : MonoBehaviour if (TryQueryDaemonEntityContact(observer, target, out var contact)) return (float)contact.InfoGathered; - return observer != null && - target != null && - observer.EntityInfoGathered.TryGetValue(target, out var infoGathered) - ? infoGathered - : 0f; + return 0f; } private bool IsObservedHostileContact(Entity observer, Entity target) @@ -3256,7 +3252,7 @@ public class ActionGameManager : MonoBehaviour if (TryQueryDaemonEntityContact(observer, target, out var contact)) return contact.Hostile; - return target != null && target.IsHostileTo(observer); + return false; } private void ReconcileVisibleTargetIndicators()