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:
parent
660e6b5b1c
commit
dc08e1abba
521 changed files with 47247 additions and 795 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RynthCore.Plugin.RynthAi;
|
||||
using RynthCore.Plugin.RynthOracle.Data;
|
||||
using RynthCore.Plugin.Shared;
|
||||
|
|
@ -21,6 +22,90 @@ internal sealed class OracleContext
|
|||
public readonly VoidTracker Void = new();
|
||||
public readonly FellowshipTracker Fellowship = new();
|
||||
public readonly ServerIdentity Server = new();
|
||||
/// <summary>RynthILT's profile with the /qb lists (Infinite Leaftide only: polled while Server.IsIlt).</summary>
|
||||
public readonly IltServerLink Ilt = new();
|
||||
/// <summary>The Leaftide wiki quest guide RynthILT keeps (Infinite Leaftide only: polled while Server.IsIlt).</summary>
|
||||
public readonly QuestGuideClient Guide = new();
|
||||
|
||||
/// <summary>
|
||||
/// RynthOracle's own quest guide from the AC Community Wiki (asheron.fandom.com), on every server (2026-11-21).
|
||||
/// Settable for the tests (a file of their own).
|
||||
/// </summary>
|
||||
public FandomFeed Fandom = new();
|
||||
|
||||
/// <summary>
|
||||
/// The wiki guide in use: on Infinite Leaftide RynthILT's (its own wiki) once it has quests, else the AC
|
||||
/// Community Wiki's.
|
||||
/// </summary>
|
||||
public QuestGuide Wiki
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Server.IsIlt && Guide.Guide.Quests.Count > 0) return Guide.Guide;
|
||||
QuestGuide sg = ServerGuide.Client.Guide;
|
||||
if (sg.Quests.Count == 0) return Fandom.Guide;
|
||||
// The active server's own wiki quests (RynthConquest's Conquest wiki, 2026-11-21) over the AC
|
||||
// Community Wiki's: its quests first, then the retail ones it doesn't have; the kill tasks, society
|
||||
// quests and contracts are the AC Community Wiki's.
|
||||
int key = unchecked(ServerGuide.Client.Revision * 7919 + Fandom.Revision);
|
||||
if (_merged == null || _mergedKey != key || !ReferenceEquals(_mergedFrom, sg))
|
||||
{
|
||||
var g = new QuestGuide
|
||||
{
|
||||
Source = sg.Source + "+fandom", Parser = Math.Min(sg.Parser, Fandom.Guide.Parser),
|
||||
UpdatedUtc = sg.UpdatedUtc, KillTasks = Fandom.Guide.KillTasks, Society = Fandom.Guide.Society, Contracts = Fandom.Guide.Contracts,
|
||||
};
|
||||
var titles = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
foreach (GuideQuest q in sg.Quests) if (titles.Add(q.Title)) g.Quests.Add(q);
|
||||
foreach (GuideQuest q in Fandom.Guide.Quests) if (titles.Add(q.Title)) g.Quests.Add(q);
|
||||
_merged = g;
|
||||
_mergedKey = key;
|
||||
_mergedFrom = sg;
|
||||
}
|
||||
return _merged;
|
||||
}
|
||||
}
|
||||
|
||||
private QuestGuide? _merged, _mergedFrom;
|
||||
private int _mergedKey;
|
||||
|
||||
/// <summary>The active server's own wiki quest guide (RynthServer.QuestGuide; RynthConquest's), on any server but ILT.</summary>
|
||||
public readonly ServerGuideClient ServerGuide = new();
|
||||
|
||||
/// <summary>The wiki tab's name: "ILT Wiki", "<server> Wiki" for a server's own guide, else "AC Wiki".</summary>
|
||||
public string WikiLabel =>
|
||||
Server.IsIlt && Guide.Guide.Quests.Count > 0 ? "ILT Wiki"
|
||||
: ServerGuide.Client.Guide.Quests.Count > 0 ? (ServerGuide.Client.Tag.Length > 0 ? ServerGuide.Client.Tag : "Server") + " Wiki"
|
||||
: "AC Wiki";
|
||||
|
||||
/// <summary>The wiki in use is the AC Community Wiki's.</summary>
|
||||
public bool WikiIsFandom => ReferenceEquals(Wiki, Fandom.Guide);
|
||||
|
||||
/// <summary>Goes up when either guide changes.</summary>
|
||||
public int WikiRevision => unchecked((Guide.Revision * 7919 + Fandom.Revision) * 31 + ServerGuide.Client.Revision);
|
||||
|
||||
/// <summary>A wiki quest by title: the guide in use, else the AC Community Wiki's (a contract's quest, a society quest).</summary>
|
||||
public GuideQuest? FindWiki(string title) => Wiki.Find(title) ?? (WikiIsFandom ? null : Fandom.Guide.Find(title));
|
||||
/// <summary>"Run this quest": the wiki quest RynthNav is walking (set up by the plugin's Initialize).</summary>
|
||||
public QuestRunner? Runner;
|
||||
/// <summary>Stamps the server gave this session ("You've stamped X!"), as GuideStamp keys: done before /myquests says so.</summary>
|
||||
public readonly System.Collections.Generic.HashSet<string> SessionStamps = new(StringComparer.Ordinal);
|
||||
/// <summary>Goes up when <see cref="SessionStamps"/> grows.</summary>
|
||||
public int SessionStampRevision;
|
||||
/// <summary>Kill tasks' kill lines this session (the Kill Tasks tab, 2026-11-21).</summary>
|
||||
public readonly KillChat Kills = new();
|
||||
/// <summary>Sends a RynthAi command through the plugin-command broker (action, value); false without RynthAi.</summary>
|
||||
public Func<string, string, bool> SendAi = (_, _) => false;
|
||||
/// <summary>RynthILT's data interface: the Temple guardians (Infinite Leaftide only).</summary>
|
||||
public readonly RynthCore.Plugin.Shared.RynthIltDataClient IltData = new();
|
||||
/// <summary>The Temple guardians as RynthILT last reported them (None off Infinite Leaftide).</summary>
|
||||
public RynthCore.Plugin.Shared.IltGuardianView Guardian = RynthCore.Plugin.Shared.IltGuardianView.None;
|
||||
/// <summary>Goes up when <see cref="Guardian"/> changes (the Quests list rebuilds its guardian rows).</summary>
|
||||
public int GuardianRevision;
|
||||
/// <summary>The last guardian command's problem, or "".</summary>
|
||||
public string GuardianMessage = "";
|
||||
/// <summary>A verb for RynthILT's Temple guardians (handin, stop, refresh, chat/auto/buy on|off).</summary>
|
||||
public Func<string, bool> GuardianCommand = _ => false;
|
||||
// A server's own screens are its server plugin's (2026-10-20, 2026-10-21): nothing here is one server's.
|
||||
/// <summary>RynthAi's session (the one session every tracker shows); read while the Character tab shows.</summary>
|
||||
public readonly RynthCore.Plugin.Shared.RynthAiSessionClient AiSession = new();
|
||||
|
|
@ -39,6 +124,14 @@ internal sealed class OracleContext
|
|||
/// (RynthConquest publishes Conquest's), 1 on every other server or without the plugin.
|
||||
/// </summary>
|
||||
public double VoidDotScale = 1.0;
|
||||
/// <summary>The Gear tab's Check (worn gear's spells, wards and banes, ratings); every server.</summary>
|
||||
public readonly GearScanner Gear = new();
|
||||
/// <summary>The ILT Tracker window's packs and bounty slots (Infinite Leaftide only): read while that window shows.</summary>
|
||||
public readonly T11Scanner T11 = new();
|
||||
/// <summary>The ILT Tracker's quest bonus: the "/bonus" multipliers and a "/qb" count from chat (2026-11-21).</summary>
|
||||
public readonly QuestBonus QuestBonus = new();
|
||||
/// <summary>Set by the plugin: reads the packs and bounty slots for the ILT Tracker tab now.</summary>
|
||||
public Action RescanT11 = () => { };
|
||||
|
||||
/// <summary>Titles the character holds (engine API v75); TitlesKnown false until the engine has the list.</summary>
|
||||
public readonly System.Collections.Generic.HashSet<int> EarnedTitles = new();
|
||||
|
|
|
|||
Loading…
Reference in a new issue