From f9694b869506c4982887ab93c78d3699c2d8124d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 21 Jun 2026 17:32:35 +0100 Subject: [PATCH] Read target indicators from daemon contacts --- Aetheria.State.Verify/Program.cs | 1 + Assets/Scripts/Gameplay/ActionGameManager.cs | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index ed49dd5bb..a2dd33dd3 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -7747,6 +7747,7 @@ static void RequireMainMenuContinueRunState(string root) "var currentEntityKey = $\"{zoneEntityKeyPrefix}{run.CurrentZoneEntityIndex}.v1\"", "TargetVisibilityFill.fillAmount = Mathf.Lerp(.25f, .75f, (CurrentEntity.EntityInfoGathered[target] - threshold) / (1 - threshold));", "VisibilityToTargetFill.fillAmount = Mathf.Lerp(.25f, .75f, target.EntityInfoGathered[CurrentEntity] / threshold);", + "indicator.Key.EntityInfoGathered[CurrentEntity]", "CurrentEntity.Target.Value.IsHostileTo(CurrentEntity)" }; diff --git a/Assets/Scripts/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs index 29b1fbf52..c5a1d321b 100644 --- a/Assets/Scripts/Gameplay/ActionGameManager.cs +++ b/Assets/Scripts/Gameplay/ActionGameManager.cs @@ -3436,10 +3436,11 @@ public class ActionGameManager : MonoBehaviour indicator.Value.Fill.enabled = false; else { + var infoGatheredByHostile = GetObservedInfoGathered(indicator.Key, CurrentEntity); indicator.Value.Fill.fillAmount = - Saturate(indicator.Key.EntityInfoGathered[CurrentEntity] / Settings.GameplaySettings.TargetDetectionInfoThreshold); + Saturate(infoGatheredByHostile / Settings.GameplaySettings.TargetDetectionInfoThreshold); indicator.Value.Fill.enabled = - !(indicator.Key.EntityInfoGathered[CurrentEntity] > Settings.GameplaySettings.TargetDetectionInfoThreshold) || + !(infoGatheredByHostile > Settings.GameplaySettings.TargetDetectionInfoThreshold) || Mathf.Sin(TargetSpottedBlinkFrequency * Time.time) + TargetSpottedBlinkOffset > 0; } } @@ -3452,8 +3453,9 @@ public class ActionGameManager : MonoBehaviour else { indicator.Value.Fill.enabled = true; + var infoGatheredByFriendly = GetObservedInfoGathered(indicator.Key, CurrentEntity); indicator.Value.Fill.fillAmount = - Saturate(indicator.Key.EntityInfoGathered[CurrentEntity] / Settings.GameplaySettings.TargetDetectionInfoThreshold); + Saturate(infoGatheredByFriendly / Settings.GameplaySettings.TargetDetectionInfoThreshold); } } var look = Input.Player.Look.ReadValue();