From a40974ea677cf9a54d4cc3320a68ba5d5ffccd72 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 10 Apr 2026 17:24:30 +0200 Subject: [PATCH] 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) --- MosswartMassacre/PluginCore.cs | 4 ++-- .../bin/Release/MosswartMassacre.dll | Bin 1760768 -> 1760768 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MosswartMassacre/PluginCore.cs b/MosswartMassacre/PluginCore.cs index 6c190ed..f8a132f 100644 --- a/MosswartMassacre/PluginCore.cs +++ b/MosswartMassacre/PluginCore.cs @@ -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); diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll index 93cf9c5945d26bcef2339b34871ef34ce6f0d122..1b478ff13e2feeb128f1cf37cc454b7ebaee57ee 100644 GIT binary patch delta 468 zcmZ9{JxE(o6bJBg-g~JvpVlNMIia*7=+N?-Pc0OrDSm*9P=zWIXx9c(kf1myibzzR zVsN<5(h52_m0n7$py=jOeY~pCL2)Ww)GX4$p5SB;{5V|xa1a0Sjm-E)W?@<@?DTFI zjGWuJBIt(7gu&1X^&x=-}wpF~wc?A~|tPV<_>2Zt)*O_Lt@W delta 475 zcmYk%IY#ziFj#!B zH=vb`{KC5s1XGAE>xq?xq>G(ZoK$Au@#oJl0~0;hqUYM4E^D7Z7xC?7m;Qq+%(CHQ zQ8`{y?5OrJ2Yv6-$hvsiz~=o)7=h^i5oqwe=Cuf~1rDcSICeGz#6lz@lRRQ2Hj+>5 zq<|>IL7c=z3W=L|ND(O}CB!SvW=c0!AQJ0)FBN_7WoveL5Vv1t&MMi?lGd0hm6Hl# zO1QY-Zh0#>9evyy*<3Y#uZGeIF|mjjvz{Vg&NhErry5YZ)z)CZ&+DHsF_^tLd#8oy z*@P}<2FVF`POejLG#m=wA73YLQd0v5ON|Zl5oL^*8@LQ7e8<2JacST#IP2v9xjH^+ zV!M*G+L_E!HhMWXaSqn`uZguVD=MEc2vQGo@$naIQo5PST3L_