2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Revert "Close Ring Proximity criteria: Prevent it from triggering on a belt (#56)" (#58)

This reverts commit d9fbdd5269c53cc196b3a7fc0c18077d6060f06d.
This commit is contained in:
Xjph 2022-02-26 20:10:29 -03:30 committed by GitHub
parent 2915045ba9
commit 7c209efb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ namespace Observatory.Explorer
foreach (var ring in parent.Rings)
{
var separation = Math.Min(Math.Abs(scan.SemiMajorAxis - ring.OuterRad), Math.Abs(ring.InnerRad - scan.SemiMajorAxis));
if (separation < scan.Radius * 10 && !ring.Name.Contains("Belt"))
if (separation < scan.Radius * 10)
{
results.Add("Close Ring Proximity", $"Orbit: {scan.SemiMajorAxis / 1000:N0}km, Radius: {scan.Radius / 1000:N0}km, Distance from ring: {separation / 1000:N0}km");
}