From 3d17ba035bdcfbc8a82db9751c83bb113a8c2cd3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 12:57:04 +0200 Subject: [PATCH] Mining Cut 3: the parked ResourceScanner stops evaluating stats nothing reads Chunks are detected by reflected light (Cut 3), not by a scanner. The behavior's per-tick Update of Range, MinimumDensity and ScanDuration had no reader anywhere; it goes, with the three properties and the interface. ResourceScannerData stays authored. Co-Authored-By: Claude Opus 5.5 --- .../ServerShared/Behaviors/ResourceScanner.cs | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs b/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs index 051dd5832..e54fa4a9f 100644 --- a/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs +++ b/Assets/Scripts/ServerShared/Behaviors/ResourceScanner.cs @@ -30,30 +30,16 @@ public class ResourceScannerData : BehaviorData // Cut 2 (docs/mining-cut.md, Q1=A): the dead survey Execute and its scan-target fields are gone // (ScanTarget/Asteroid/_scanTime/_scanTarget, and the always-false-until-scanned PlanetSurveyFloor write it -// worked toward). Range, MinimumDensity and ScanDuration stay authored data on this behavior until Q2 rules -// whether the scanner becomes a chunk's detection-range gate (docs/mining-cut.md Q2 consequence "Visibility"). -public class ResourceScanner : Behavior, IAlwaysUpdatedBehavior +// worked toward). Mining Cut 3 (docs/mining-cut-refresh.md): chunks are detected by reflected light, not by a +// scanner, so the per-tick evaluation of three stats nothing read is gone too. The behavior is parked: its data +// stays authored, and it does nothing. +public class ResourceScanner : Behavior { - private ResourceScannerData _data; - - public float Range { get; private set; } - public float MinimumDensity { get; private set; } - public float ScanDuration { get; private set; } - public ResourceScanner(ResourceScannerData data, EquippedItem item) : base(data, item) { - _data = data; } public ResourceScanner(ResourceScannerData data, ConsumableItemEffect item) : base(data, item) { - _data = data; - } - - public void Update(float delta) - { - Range = Evaluate(_data.Range); - MinimumDensity = Evaluate(_data.MinimumDensity); - ScanDuration = Evaluate(_data.ScanDuration); } } \ No newline at end of file