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:
parent
a4db8e08a5
commit
7d657c6af4
2 changed files with 2 additions and 2 deletions
|
|
@ -812,11 +812,11 @@ namespace MosswartMassacre
|
||||||
var decalCoords = portal.Coordinates();
|
var decalCoords = portal.Coordinates();
|
||||||
if (decalCoords == null) return;
|
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 portalPos = new Coordinates(decalCoords.EastWest, decalCoords.NorthSouth);
|
||||||
var playerPos = Coordinates.Me;
|
var playerPos = Coordinates.Me;
|
||||||
double dist = playerPos.DistanceToFlat(portalPos);
|
double dist = playerPos.DistanceToFlat(portalPos);
|
||||||
if (dist > 12.0) return;
|
if (dist > 60.0) return;
|
||||||
|
|
||||||
const string fmt = "F7";
|
const string fmt = "F7";
|
||||||
string ns = decalCoords.NorthSouth.ToString(fmt, CultureInfo.InvariantCulture);
|
string ns = decalCoords.NorthSouth.ToString(fmt, CultureInfo.InvariantCulture);
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue