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:
parent
23efcfee87
commit
7797901d69
287 changed files with 22602 additions and 1090 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue