feat: increase portal detection range from 12m to 60m

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-04-09 19:40:59 +02:00
parent a4db8e08a5
commit 7d657c6af4
2 changed files with 2 additions and 2 deletions

View file

@ -812,11 +812,11 @@ namespace MosswartMassacre
var decalCoords = portal.Coordinates();
if (decalCoords == null) return;
// Only report portals within 12 meters of the player
// Only report portals within 60 meters of the player
var portalPos = new Coordinates(decalCoords.EastWest, decalCoords.NorthSouth);
var playerPos = Coordinates.Me;
double dist = playerPos.DistanceToFlat(portalPos);
if (dist > 12.0) return;
if (dist > 60.0) return;
const string fmt = "F7";
string ns = decalCoords.NorthSouth.ToString(fmt, CultureInfo.InvariantCulture);