Mining 4a: blasts wear the rocks their disc covers, through Detonate

Detonate's chunk pass shares the disc by area over rocks (lens over pi r^2), publishes one
AbsorbEvent per worn rock on Zone.ChunkCapabilities, then Zone.Wear. Publish takes a
CapabilityEvents so entities and rocks share it. One largest-rock bound (Zone.LargestChunkRadius)
serves the index and the blast query.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-12 21:28:43 +00:00
commit cbe33a0f1d
4 changed files with 324 additions and 15 deletions

View file

@ -48,8 +48,7 @@ public sealed class BeltTargets : ITargetProvider
_zone = zone;
_field = field;
_data = data;
var size = settings.AsteroidSize;
_largestRadius = size.Exponent > 0 ? max(abs(size.Minimum), abs(size.Maximum)) : float.PositiveInfinity;
_largestRadius = Zone.LargestChunkRadius(settings);
var count = data.Asteroids.Length;
_periods = new double[count];