Snapshot for release 2026.10.8.1 (internal f3d67ec)

This commit is contained in:
Tom Bohar 2026-10-08 17:29:51 -04:00
commit 0daf0a44a3
49 changed files with 2802 additions and 121 deletions

View file

@ -8,7 +8,11 @@ namespace RynthCore.Plugin.RynthNav;
// Where a character's personal recalls land. The client is never told (the server keeps
// a character's lifestone, ties, last portal and house), so RynthNav learns them from what
// it sees: the server's messages ("You have attuned your spirit to this Lifestone.", "X is
// recalling home.") and the teleport that follows. Saved per character in
// recalling home.") and the teleport that follows, and a teleport right after your own spell
// words (a recall cast by hand: RecallPlanner.GuessHandCast). ACE sends a character neither
// its tie positions (PlayerDescription carries only LastOutsideDeath) nor the tied portals'
// data ids (LinkedPortalOne/Two aren't SendOnLogin and change silently), so a tie made
// before RynthNav was there is learned on the first cast of its recall. Saved per character in
// NavData\recalls.txt. No host calls: the offline tests compile this file.
// (GoArrow kept the same kind of per-character recall list; Digero 2006, Virindi 2011, MIT.)
@ -61,6 +65,9 @@ internal enum RecallEvent
RecallingHometown,
/// <summary>"Name is recalling to the marketplace." (lands in a dungeon: never used for routes).</summary>
RecallingMarketplace,
/// <summary>"You say, "Zojak Ququ"" on the spellcasting channel: you started casting a spell
/// (a recall cast by hand teleports a few seconds later).</summary>
OwnSpellWords,
}
internal sealed class RecallMemory
@ -108,15 +115,21 @@ internal sealed class RecallMemory
}
}
/// <summary>ChatMessageType.Spellcasting: the words a caster speaks (yours: "You say, "...").</summary>
public const int ChatTypeSpellcasting = 17;
/// <summary>
/// Reads a chat line (the server's own wording, ACE's Player_Location / Lifestone /
/// WorldObject_Magic). <paramref name="playerName"/> picks out your own "is recalling"
/// lines from other players' nearby.
/// lines from other players' nearby. <paramref name="chatType"/> tells your spell words
/// (Spellcasting, 17) from something you typed in local chat (Speech, 2).
/// </summary>
public static RecallEvent Classify(string? text, string? playerName)
public static RecallEvent Classify(string? text, string? playerName, int chatType = -1)
{
if (string.IsNullOrEmpty(text)) return RecallEvent.None;
string t = text.Trim();
if (chatType == ChatTypeSpellcasting && t.StartsWith("You say, \"", StringComparison.Ordinal))
return RecallEvent.OwnSpellWords;
if (t.StartsWith("You have attuned your spirit to this Lifestone", StringComparison.OrdinalIgnoreCase))
return RecallEvent.AttunedLifestone;
if (t.StartsWith("You have successfully linked with the life stone", StringComparison.OrdinalIgnoreCase))