feat: SK backlog from test through 2026.11.22.48 (Trade Shop, Oracle, quests, loot, nav)

Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop, Oracle wiki/ILT tracker, quest runs, loot checklist, RynthNav, VTank import. HandWrittenVersion remains 0.5.0-legacy-ui. See Changelog/2026-11-22-sk-backlog-test-merge.md.
This commit is contained in:
BlankenshipG 2026-11-23 00:08:38 -05:00
commit dc08e1abba
521 changed files with 47247 additions and 795 deletions

View file

@ -26,7 +26,8 @@ internal readonly record struct WorldPt(double X, double Y, double H)
}
/// <summary>A recall of the plan, as the plan was made (RouteStep.RecallIndex indexes these).</summary>
internal readonly record struct TripRecall(string Name, int SpellId, string Command, double CastSeconds);
/// <summary>A recall the trip may cast. ToArrival >= 0: it lands in a learned dungeon, at that arrival of the route hub.</summary>
internal readonly record struct TripRecall(string Name, int SpellId, string Command, double CastSeconds, int ToArrival = -1);
/// <summary>
/// One trip RynthNav planned (Route) or is walking (Go), frozen when it was planned: the steps,
@ -191,13 +192,28 @@ internal sealed class PlannedTrip
pts = net.Walk(best.Arrival, exit)?.Points;
if (pts == null) { why = $"townnet.json has no walk from {best.Name}'s arrival to the {net.Exits[exit].Name}"; return null; }
}
else if (i > 0 && Steps[i - 1].IsHub)
{
// Chained from the hub step before: its exit lands at an arrival here (a learned dungeon's portal into another).
int prevExit = Steps[i - 1].HubExit;
int arrival = prevExit >= 0 && prevExit < net.Exits.Count ? net.Exits[prevExit].DestArrival : -1;
if (arrival < 0) { why = "the portal before it doesn't say where it lands"; return null; }
pts = net.Walk(arrival, exit)?.Points;
if (pts == null) { why = $"no walk is known from where the {net.Exits[prevExit].Name} lands to the {net.Exits[exit].Name}"; return null; }
}
else if (i > 0 && Steps[i - 1].UseRecall && RecallOf(i - 1) is { ToArrival: >= 0 } into)
{
// A recall or portal gem into a learned dungeon: the walk from where it lands.
pts = net.Walk(into.ToArrival, exit)?.Points;
if (pts == null) { why = $"no walk is known from where {into.Name} lands to the {net.Exits[exit].Name}"; return null; }
}
else if (i == 0 && !StartOnMap && net.Contains((StartCell >> 16) & 0xFFFF))
{
double lx = Start.X - ((StartCell >> 24) & 0xFF) * 192.0, ly = Start.Y - ((StartCell >> 16) & 0xFF) * 192.0;
pts = net.WayTo(exit, lx, ly, HubWalker.OffRouteUnits, out _);
if (pts == null) { why = "no Town Network walk to that exit passes where the trip started"; return null; }
if (pts == null) { why = "no walk to that exit passes where the trip started"; return null; }
}
else { why = "the plan doesn't say how it gets into the Town Network"; return null; }
else { why = "the plan doesn't say how it gets in there"; return null; }
var list = new List<WorldPt>(pts.Count);
foreach (TownNetPoint p in pts)