RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c33e24a610
commit
12ca25f911
426 changed files with 108239 additions and 7521 deletions
51
Plugins/RynthCore.Plugin.RynthNav/RynthNavPlugin.Settle.cs
Normal file
51
Plugins/RynthCore.Plugin.RynthNav/RynthNavPlugin.Settle.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
namespace RynthCore.Plugin.RynthNav;
|
||||
|
||||
// After a recall or a portal: wait for the arrival to finish before the next step, the way
|
||||
// RynthAi's nav does. The position jump comes first and the client's portal space after it
|
||||
// (10-01 20:55: Recall Aphus Lassel jumped at 12.5 s, portal space 12.9-19.4 s). Moving on at the
|
||||
// jump started the Town Network portal step while the recall's portal space was still to come, and
|
||||
// that portal space's end was then taken for the Town Network portal firing.
|
||||
// Settled = out of portal space for SettleQuietMs, after portal space was seen (or SettleNoPortalMs
|
||||
// passed without any).
|
||||
public sealed partial class RynthNavPlugin
|
||||
{
|
||||
private const long SettleQuietMs = 1000;
|
||||
private const long SettleNoPortalMs = 3000;
|
||||
private const long SettleGiveUpMs = 60000;
|
||||
|
||||
private bool _settling, _settleSawPortal;
|
||||
private long _settleJumpMs, _settleQuietSince;
|
||||
|
||||
private void BeginSettle()
|
||||
{
|
||||
_settling = true;
|
||||
_settleJumpMs = NowMs;
|
||||
_settleQuietSince = 0;
|
||||
_settleSawPortal = Host.HasIsPortaling && Host.IsPortaling();
|
||||
Host.SetAutoRun(false);
|
||||
lock (_gate) _status = "arriving…";
|
||||
}
|
||||
|
||||
private void StepSettle()
|
||||
{
|
||||
long now = NowMs;
|
||||
bool portaling = Host.HasIsPortaling && Host.IsPortaling();
|
||||
Host.SetAutoRun(false);
|
||||
if (portaling)
|
||||
{
|
||||
_settleSawPortal = true;
|
||||
_settleQuietSince = 0;
|
||||
if (now - _settleJumpMs > SettleGiveUpMs) { _settling = false; FinishGoto("stopped: still in portal space a minute after the teleport"); }
|
||||
return;
|
||||
}
|
||||
if (_settleQuietSince == 0) _settleQuietSince = now;
|
||||
if (now - _settleQuietSince < SettleQuietMs) return;
|
||||
if (!_settleSawPortal && now - _settleJumpMs < SettleNoPortalMs) return;
|
||||
|
||||
_settling = false;
|
||||
_lastLandMs = now; // the portal cooldown counts from the real landing
|
||||
RefreshTiles(CurrentLandblock);
|
||||
Host.Log($"[RynthNav] arrived after the teleport ({(now - _settleJumpMs) / 1000.0:F1} s{(_settleSawPortal ? ", portal space over" : "")}) — next step");
|
||||
AdvanceRoute();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue