feat: port SK test branch (2026.10.18.24) onto sk

Squash of test/hotbuild-2026-10-16 as merged onto aelrynth main 2026.10.17.1, matching the
2026.10.18.24 test installer. The test branch wins where both changed the same lines; sk-only
changes kept; duplicate features cut to the test branch's copy. RynthAi HandWrittenVersion stays
0.5.0-legacy-ui on sk.

Highlights: RynthOracle 0.6.0 (Legendary, Markers, Dynamic Stamps and Temple guardians merged into
the Quests list, RynthNav Go to), RynthILT 0.2.20 (ub-IT auto-chunk rules, rating level,
RynthILT.Data v3), RynthAi ub-IT /ub and VT/MT meta compatibility and the loot attribute checklist,
RynthNav destination alternatives. Changelog/2026-10-18-sk-port-test-branch-2026.10.18.24.md.
This commit is contained in:
BlankenshipG 2026-10-18 16:22:40 -04:00
commit 7797901d69
287 changed files with 22602 additions and 1090 deletions

View file

@ -144,6 +144,22 @@ internal sealed class Atlas
// ── Search ───────────────────────────────────────────────────────────────
/// <summary>How well <paramref name="name"/> matches <paramref name="q"/> (lower case): 0 = not at all.</summary>
/// <summary>
/// "a || b || c": the first candidate that is coordinates, or that names a place on the map as a
/// whole word or more (<see cref="MatchScore"/> 60+: "Mite Maze" yes, "Bur" inside "Burun" no),
/// so a loose candidate never picks an unrelated place. Null when none does.
/// </summary>
public string? FirstOnMap(string alternatives, bool hasPos, double ns, double ew)
{
foreach (string raw in alternatives.Split("||", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries))
{
if (NavCoords.TrySplitCoordsAndName(raw, out _, out _, out _)) return raw;
AtlasLocation? best = FindBest(raw, hasPos, ns, ew);
if (best != null && MatchScore(best.Name, raw) >= 60) return raw;
}
return null;
}
public static int MatchScore(string name, string q)
{
if (q.Length == 0) return 1;

View file

@ -669,6 +669,25 @@ public sealed partial class RynthNavPlugin
return true;
}
/// <summary>
/// "a || b || c": the first candidate that is coordinates, or that names a place on the map
/// as a whole word or more (Atlas.MatchScore 60+: "Mite Maze" yes, "Bur" inside "Burun" no),
/// so a loose candidate never sends the character to an unrelated place. False (and why)
/// when none does.
/// </summary>
private bool PickAlternative(string text, out string picked, out string why)
{
why = "";
bool hasPos = PlayerMapPos(out double pns, out double pew);
picked = _atlas.FirstOnMap(text, hasPos, pns, pew) ?? "";
if (picked.Length > 0) return true;
// Coordinates are always taken, so here every candidate was a name.
why = _atlas.Locations.Count == 0
? "the Atlas isn't loaded (" + _atlasStatus + ")"
: "none of these is a place on the map: " + text.Replace("||", ",");
return false;
}
/// <summary>The Atlas place the last ResolveTarget picked (null for bare coordinates). Tick thread.</summary>
private AtlasLocation? _resolvedPlace;
@ -995,6 +1014,12 @@ public sealed partial class RynthNavPlugin
int sp = raw.IndexOf(' ');
string cmd = (sp < 0 ? raw : raw.Substring(0, sp)).ToLowerInvariant();
string rest = sp < 0 ? string.Empty : raw.Substring(sp + 1).Trim();
// "go a || b || c" (Oracle's Dynamic Stamps, any caller): the first candidate on the map.
if (cmd is "go" or "goto" or "route" or "arrow" && rest.Contains("||", StringComparison.Ordinal))
{
if (!PickAlternative(rest, out string picked, out string why)) { Note(why); return; }
rest = picked;
}
switch (cmd)
{
case "":

View file

@ -25,7 +25,7 @@ namespace RynthCore.Plugin.RynthNav;
public sealed partial class RynthNavPlugin : RynthPluginBase
{
internal static readonly IntPtr NamePointer = Marshal.StringToHGlobalAnsi("RynthNav");
internal const string PluginVersion = "0.6.7";
internal const string PluginVersion = "0.6.8";
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi(PluginVersion);
/// <summary>Lets PluginExports log through this plugin's host (the base Log is protected).</summary>