RynthSuite as of 2026-11-29 (internal 46bae49): release 2026.11.28.1
This commit is contained in:
parent
25552fa794
commit
598f49c899
131 changed files with 11825 additions and 329 deletions
|
|
@ -3,7 +3,7 @@ using RynthCore.Plugin.Shared;
|
|||
|
||||
namespace RynthCore.Plugin.RynthOracle;
|
||||
|
||||
internal enum OracleVerb { Window, Void, Timers, Quests, Tab, Trackers, Status, About, Help, Unknown }
|
||||
internal enum OracleVerb { Window, Void, Timers, Quests, Tab, Trackers, Status, About, Help, Wiki, Unknown }
|
||||
|
||||
/// <summary>A parsed "/ro ..." (the words after /ro, lower case): its verb, and the tab or the trackers it shows.</summary>
|
||||
internal readonly record struct OracleCommand(OracleVerb Verb, string Tab = "", QuestKind? Trackers = null, string Word = "")
|
||||
|
|
@ -35,9 +35,17 @@ internal readonly record struct OracleCommand(OracleVerb Verb, string Tab = "",
|
|||
"skills" or "skill" => new(OracleVerb.Tab, OracleView.TabSkills),
|
||||
"attributes" or "attrs" or "attribute" or "vitals" => new(OracleVerb.Tab, OracleView.TabAttributes),
|
||||
"progress" or "progression" => new(OracleVerb.Tab, OracleView.TabProgress),
|
||||
// The Guide tab (wiki quests with their steps), on one of its lists.
|
||||
"guide" => new(OracleVerb.Tab, OracleView.TabGuide),
|
||||
"killtasks" or "kill tasks" or "guide kill tasks" or "guide killtasks" => new(OracleVerb.Tab, OracleView.TabGuide, Word: "killtasks"),
|
||||
"guide society" => new(OracleVerb.Tab, OracleView.TabGuide, Word: "society"),
|
||||
"contracts" or "guide contracts" => new(OracleVerb.Tab, OracleView.TabGuide, Word: "contracts"),
|
||||
"status" => new(OracleVerb.Status),
|
||||
"about" => new(OracleVerb.About, OracleView.TabAbout),
|
||||
"help" or "?" => new(OracleVerb.Help),
|
||||
// The AC Community Wiki feed (off by default): /ro wiki [on|off|read|status].
|
||||
"wiki" or "wiki status" => new(OracleVerb.Wiki, Word: "status"),
|
||||
"wiki on" or "wiki off" or "wiki read" or "wiki refresh" => new(OracleVerb.Wiki, Word: a.Substring(5)),
|
||||
_ => new(OracleVerb.Unknown, Word: a),
|
||||
};
|
||||
}
|
||||
|
|
@ -47,7 +55,7 @@ internal readonly record struct OracleCommand(OracleVerb Verb, string Tab = "",
|
|||
+ "/ro skills|attributes|progress (those tabs), /ro void (Void window), "
|
||||
+ "/ro timers (Quest Timers window), /ro fellowship (Fellowship tab), "
|
||||
+ "/ro trackers (Quests tab, trackers only), /ro legendary (John's 30 key quests), /ro markers, "
|
||||
+ "/ro quests (read quest flags), /ro status, "
|
||||
+ "/ro guide (Guide tab: wiki quests with steps; /ro killtasks, /ro guide society, /ro contracts), /ro quests (read quest flags), /ro wiki on|off|read|status (the AC Community Wiki feed, off until turned on), /ro status, "
|
||||
+ "/ro about (About tab: settings, server, quest list). A server's own pages are its server plugin's (/rserver).";
|
||||
|
||||
public const string NoWindows =
|
||||
|
|
@ -57,7 +65,7 @@ internal readonly record struct OracleCommand(OracleVerb Verb, string Tab = "",
|
|||
|
||||
public static string Shown(string window, bool shown) => CommandReply.Shown(window, shown);
|
||||
|
||||
public static string OnTab(string tab) => $"Oracle window shown on its {tab} tab.";
|
||||
public static string OnTab(string tab, string list = "") => list.Length > 0 ? $"Oracle window shown on its {tab} tab: {list}." : $"Oracle window shown on its {tab} tab.";
|
||||
|
||||
public static string OnTrackers(QuestKind? kind) => kind switch
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue