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 <noreply@anthropic.com>
This commit is contained in:
parent
15723f4037
commit
3d17ba035b
1 changed files with 4 additions and 18 deletions
|
|
@ -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
|
// 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
|
// (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
|
// worked toward). Mining Cut 3 (docs/mining-cut-refresh.md): chunks are detected by reflected light, not by a
|
||||||
// whether the scanner becomes a chunk's detection-range gate (docs/mining-cut.md Q2 consequence "Visibility").
|
// scanner, so the per-tick evaluation of three stats nothing read is gone too. The behavior is parked: its data
|
||||||
public class ResourceScanner : Behavior, IAlwaysUpdatedBehavior
|
// 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)
|
public ResourceScanner(ResourceScannerData data, EquippedItem item) : base(data, item)
|
||||||
{
|
{
|
||||||
_data = data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ResourceScanner(ResourceScannerData data, ConsumableItemEffect item) : base(data, item)
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue