mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
Weighting every containing obstacle by depth let a hive's 0.5 AU range outweigh the planet right below the mecha, so a take-off under a hive steered back into the ground. Stars and planets keep their priority over hives, as before this branch: while the mecha is inside any star or planet range, hives take no part. Overlapping star and planet ranges are still left together, weighted by depth; their safety margins are equal, so the nearest surface dominates. Inside hive ranges only, the first containing hive is left, as before. Add tools/tests/Test-AutoCruiseAvoidance.ps1: an offline check of the avoidance heading for a plain take-off, a take-off under an overlapping hive range, a take-off from a moon inside its gas giant's range, and a hive on its own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>