feat: increase portal detection range from 60m to 240m
60m was too narrow (~half a house). 240m matches the typical in-game view distance for terrain features (1 AC coordinate unit = 240 game units). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7d657c6af4
commit
a40974ea67
2 changed files with 2 additions and 2 deletions
|
|
@ -812,11 +812,11 @@ namespace MosswartMassacre
|
|||
var decalCoords = portal.Coordinates();
|
||||
if (decalCoords == null) return;
|
||||
|
||||
// Only report portals within 60 meters of the player
|
||||
// Only report portals within 240 meters of the player
|
||||
var portalPos = new Coordinates(decalCoords.EastWest, decalCoords.NorthSouth);
|
||||
var playerPos = Coordinates.Me;
|
||||
double dist = playerPos.DistanceToFlat(portalPos);
|
||||
if (dist > 60.0) return;
|
||||
if (dist > 240.0) return;
|
||||
|
||||
const string fmt = "F7";
|
||||
string ns = decalCoords.NorthSouth.ToString(fmt, CultureInfo.InvariantCulture);
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue