feat(suite): ILT Server restore, progress lum/Enl, Oracle Benediction, Handler ring evade
RynthILT: restore RynthILT.Server for Oracle/Mini Remote; aug/enl planners use character AvailableLuminance. RynthOracle: Asheron Lesser Benediction via lesserbenedictionaug; Skills tabs. RynthAi: Empyrean Handler lethal-ring back-jump evade (face Handler then xs); pet CD already on sk. Inventory/Sort: GInv/RSort off bar; inventory links and autostack polish.
This commit is contained in:
parent
ee846559fe
commit
23efcfee87
42 changed files with 882 additions and 98 deletions
|
|
@ -28,6 +28,12 @@ internal sealed class Augmentation
|
|||
private static readonly int[] InnateAttributeIds = { 218, 219, 220, 221, 222, 223 };
|
||||
private static readonly int[] InnateResistanceIds = { 240, 241, 242, 243, 244, 245, 246 };
|
||||
|
||||
/// <summary>
|
||||
/// Permanent flag set when Asheron's Lesser Benediction is granted (Donatello Linante /
|
||||
/// Blackmoor's Page). ACE / wiki "lesserbenedictionaug".
|
||||
/// </summary>
|
||||
public const string LesserBenedictionFlag = "lesserbenedictionaug";
|
||||
|
||||
public bool IsHeading => Id == 0;
|
||||
public bool IsXp => Category == "XP";
|
||||
public bool IsLuminance => Category == "Luminance";
|
||||
|
|
@ -49,14 +55,16 @@ internal sealed class Augmentation
|
|||
if (Flag.Length > 0 && !IsQuestComplete(flags)) return 0;
|
||||
if (IsInnateAttributes) return InnateAttributeIds.Sum(id => prop((uint)id));
|
||||
if (IsInnateResistances) return InnateResistanceIds.Sum(id => prop((uint)id));
|
||||
if (IsBenediction) return 0; // upstream counts the item in inventory; not ported (see IsUnknown)
|
||||
// Lesser Benediction: permanent quest flag (not a PropertyInt).
|
||||
if (IsBenediction)
|
||||
return flags.TryGet(LesserBenedictionFlag, out QuestFlag b) && b.Solves > 0 ? 1 : 0;
|
||||
if (IsLumSpecialization) return Math.Max(prop((uint)Math.Abs(Id)) - 5, 0);
|
||||
if (Id <= 0) return 0;
|
||||
return Math.Min(prop((uint)Id), TimesTotal);
|
||||
}
|
||||
|
||||
/// <summary>Rows RynthOracle can't read (Asheron's Lesser Benediction is an item, not a property).</summary>
|
||||
public bool IsUnknown => IsBenediction;
|
||||
/// <summary>True only for rows with no readable source (none today; Benediction uses the quest flag).</summary>
|
||||
public bool IsUnknown => false;
|
||||
|
||||
public bool IsComplete(Func<uint, int> prop, QuestFlagStore flags)
|
||||
{
|
||||
|
|
@ -64,6 +72,7 @@ internal sealed class Augmentation
|
|||
if (IsInnateAttribute) return InnateAttributeIds.Sum(id => prop((uint)id)) >= 10;
|
||||
if (IsInnateResistance) return InnateResistanceIds.Sum(id => prop((uint)id)) >= 2;
|
||||
if (IsSeer) return IsQuestComplete(flags);
|
||||
if (IsBenediction) return Times(prop, flags) >= 1;
|
||||
return Times(prop, flags) >= TimesTotal;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@ internal sealed class OracleContext
|
|||
/// <summary>Set by the plugin: runs a chat command through RynthCore's plugin dispatch (another plugin's window).</summary>
|
||||
public Func<string, bool> RunCommand = _ => false;
|
||||
|
||||
/// <summary>
|
||||
/// Set by the plugin: tells the engine which SkillsFace body to embed in Oracle
|
||||
/// (0 Skills, 1 Attributes, 2 Progress, -1 off). Bridge is /rc oracle-skills.
|
||||
/// </summary>
|
||||
public Action<int> SkillsEmbedChanged = _ => { };
|
||||
|
||||
/// <summary>Set by the plugin: shows or hides the Quest Timers window.</summary>
|
||||
public Action<bool> SetQuestTimersWindow = _ => { };
|
||||
/// <summary>Set by the plugin: whether the Quest Timers window is showing.</summary>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public static unsafe class PluginExports
|
|||
public static IntPtr GetVersion()
|
||||
{
|
||||
// Keep in step with RynthOraclePlugin.Version (a u8 literal can't be built from a const string).
|
||||
try { return LiteralPointer("0.2.8"u8); }
|
||||
try { return LiteralPointer("0.3.1"u8); }
|
||||
catch { return IntPtr.Zero; }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<!-- Plugin manifest (embedded in the DLL; Plugins\Directory.Build.targets). minEngineApi is the
|
||||
highest API use NOT behind a Has*/version check. Script windows (v71, HasUi) draw its window and titles/server info (v75) are guarded with fallbacks; below v71 it runs without a window (/ro status), as on an engine with ImGui off. -->
|
||||
<RynthPluginMinEngineApi>66</RynthPluginMinEngineApi>
|
||||
<RynthPluginDescription>Quests, character, titles and leaderboards.</RynthPluginDescription>
|
||||
<RynthPluginDescription>Quests, character, skills/attributes/progress, titles and leaderboards.</RynthPluginDescription>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
{
|
||||
// Previous release: 0.2.5.
|
||||
// Previous release: 0.2.8.
|
||||
public const string Version = "0.2.9";
|
||||
public const string Version = "0.3.1";
|
||||
|
||||
private const long QuestReadDelayMs = 6000; // after login, before the hidden /myquests
|
||||
private const long CharacterReadMs = 1000;
|
||||
|
|
@ -63,6 +63,9 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
_c.RequestQuests = RequestQuests;
|
||||
_c.Send = cmd => _c.InWorld && Host.InvokeChatParser(cmd);
|
||||
_c.RunCommand = cmd => _c.InWorld && Host.InvokeChatParser(cmd);
|
||||
// SkillsFace embed: engine /rc oracle-skills bridge (works logged out too for tab prep).
|
||||
_c.SkillsEmbedChanged = tab =>
|
||||
Host.InvokeChatParser(tab < 0 ? "/rc oracle-skills off" : $"/rc oracle-skills {tab}");
|
||||
_c.ToggleCharm = ToggleCharm;
|
||||
_c.BreedingCommand = BreedingCommand;
|
||||
_ui.Log = msg => Host.Log(msg);
|
||||
|
|
@ -376,6 +379,21 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
// RynthAi, RynthILT and RynthCore's menus link here; it shows, never toggles off.
|
||||
ShowTab(OracleView.TabCharacter);
|
||||
break;
|
||||
case "skills":
|
||||
case "skill":
|
||||
// Engine SkillsFace body (raise/train) embedded under Oracle.
|
||||
ShowTab(OracleView.TabSkills);
|
||||
break;
|
||||
case "attrs":
|
||||
case "attributes":
|
||||
case "vitals":
|
||||
ShowTab(OracleView.TabAttributes);
|
||||
break;
|
||||
case "progress":
|
||||
case "progression":
|
||||
// ILT progression planners (was Skills → Progression).
|
||||
ShowTab(OracleView.TabProgress);
|
||||
break;
|
||||
case "breeding":
|
||||
case "breed":
|
||||
case "pets":
|
||||
|
|
@ -397,13 +415,15 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
ShowTab(OracleView.TabAbout);
|
||||
break;
|
||||
default:
|
||||
_c.Print("Commands: /ro (window), /ro character (Character tab: status, session, charms), /ro void (Void window), "
|
||||
_c.Print("Commands: /ro (window), /ro character (Character tab: status, session, charms), "
|
||||
+ "/ro skills|attrs|progress (raise/train and ILT planners), /ro void (Void window), "
|
||||
+ "/ro timers (Quest Timers window), /ro fellowship (Fellowship tab), /ro breeding (Pet Breeding tab, Infinite Leaftide), "
|
||||
+ "/ro quests (read quest flags), /ro status, "
|
||||
+ "/ro about (About tab: settings, server features)");
|
||||
break;
|
||||
}
|
||||
if (arg is "" or "void" or "timers" or "timer" or "fellowship" or "fellow" or "fship" or "character" or "char" or "charms" or "charm"
|
||||
or "skills" or "skill" or "attrs" or "attributes" or "vitals" or "progress" or "progression"
|
||||
or "breeding" or "breed" or "pets" or "about" or "features" && !Host.HasUi && !_noUiLogged)
|
||||
{
|
||||
_noUiLogged = true;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,9 @@ internal sealed partial class OracleView
|
|||
w.SeparatorText("Commands");
|
||||
w.BulletText("/ro open or close this window");
|
||||
w.BulletText("/ro character the Character tab (status, session)");
|
||||
w.BulletText("/ro skills raise and train skills");
|
||||
w.BulletText("/ro attrs attributes and vitals");
|
||||
w.BulletText("/ro progress ILT progression planners");
|
||||
w.BulletText("/ro timers open or close the Quest Timers window");
|
||||
w.BulletText("/ro fellowship the Fellowship tab");
|
||||
w.BulletText("/ro about this tab (settings, server)");
|
||||
|
|
|
|||
|
|
@ -73,15 +73,15 @@ internal sealed partial class OracleView
|
|||
w.SeparatorText(a.Name);
|
||||
continue;
|
||||
}
|
||||
if (a.IsUnknown) w.TextColored(UiColors.Grey, "?");
|
||||
else DoneMark(w, a.IsComplete(prop, flags));
|
||||
DoneMark(w, a.IsComplete(prop, flags));
|
||||
w.SameLine(50f);
|
||||
w.Text(a.IsUnknown ? "" : a.Text(prop, flags));
|
||||
w.Text(a.Text(prop, flags));
|
||||
w.SameLine(100f);
|
||||
Augmentation row = a;
|
||||
w.Selectable(Cut(a.Name, 26), "a.r." + a.Category + a.Id + a.Flag + a.Name, false,
|
||||
() => PrintEntry(row.Name, row.Flag, row.Effect, row.Hint, row.Url), 190f);
|
||||
if (a.IsUnknown) w.Tooltip("Asheron's Lesser Benediction is an item; RynthOracle can't count it.");
|
||||
() => PrintEntry(row.Name, row.Flag.Length > 0 ? row.Flag : (row.Id == -3 ? Augmentation.LesserBenedictionFlag : ""), row.Effect, row.Hint, row.Url), 190f);
|
||||
if (a.Id == -3)
|
||||
w.Tooltip("Detected from the lesserbenedictionaug quest flag (after Donatello Linante / Blackmoor's Page). Refresh Quests if this looks stale.");
|
||||
w.SameLine(300f);
|
||||
w.Text(Cut(a.Effect, 34));
|
||||
string cost = a.CostText(prop, flags);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,9 @@ namespace RynthCore.Plugin.RynthOracle.Views;
|
|||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
public const string TabQuests = "Quests", TabCharacter = "Character", TabAugs = "Augs", TabSociety = "Society",
|
||||
public const string TabQuests = "Quests", TabCharacter = "Character",
|
||||
TabSkills = "Skills", TabAttributes = "Attributes", TabProgress = "Progress",
|
||||
TabAugs = "Augs", TabSociety = "Society",
|
||||
TabMarkers = "Markers", TabTitles = "Titles", TabVoid = "Void", TabFellowship = "Fellowship",
|
||||
TabBoards = "Leaderboards", TabConquest = "Conquest", TabBreeding = "Pet Breeding", TabAbout = "About";
|
||||
|
||||
|
|
@ -18,6 +20,8 @@ internal sealed partial class OracleView
|
|||
|
||||
private readonly OracleContext _c;
|
||||
private readonly TabDef[] _tabs;
|
||||
/// <summary>Last SkillsFace embed tab signalled to the engine (-2 = never).</summary>
|
||||
private int _lastSkillsEmbed = -2;
|
||||
|
||||
/// <summary>Asks the plugin to show or hide the Void window (the Void tab's button).</summary>
|
||||
public Action<bool>? SetVoidWindow;
|
||||
|
|
@ -31,6 +35,10 @@ internal sealed partial class OracleView
|
|||
{
|
||||
new(TabQuests, any, DrawQuests, true),
|
||||
new(TabCharacter, any, DrawCharacter, true),
|
||||
// Skills / Attributes / Progress: engine SkillsFace body embedded by ScriptWindowFace.
|
||||
new(TabSkills, any, DrawSkillsEmbed, true),
|
||||
new(TabAttributes, any, DrawAttributesEmbed, true),
|
||||
new(TabProgress, any, DrawProgressEmbed, true),
|
||||
new(TabAugs, any, DrawAugs, true),
|
||||
new(TabSociety, any, DrawSociety, true),
|
||||
new(TabMarkers, any, DrawMarkers, false),
|
||||
|
|
@ -98,12 +106,34 @@ internal sealed partial class OracleView
|
|||
}
|
||||
w.Separator();
|
||||
|
||||
// Keep the engine SkillsFace embed in sync with the selected Oracle tab.
|
||||
int embed = tab switch
|
||||
{
|
||||
TabSkills => 0,
|
||||
TabAttributes => 1,
|
||||
TabProgress => 2,
|
||||
_ => -1,
|
||||
};
|
||||
if (embed != _lastSkillsEmbed)
|
||||
{
|
||||
_lastSkillsEmbed = embed;
|
||||
_c.SkillsEmbedChanged(embed);
|
||||
}
|
||||
|
||||
if (!_c.InWorld && tab != TabAbout)
|
||||
{
|
||||
w.TextDisabled("Log in to a character to see this page.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Skills-family tabs: leave the body empty so ScriptWindowFace can paint SkillsFace
|
||||
// into the remaining content region after the script tab strip.
|
||||
if (embed >= 0)
|
||||
{
|
||||
(current?.Draw ?? DrawSkillsEmbed)(w);
|
||||
return;
|
||||
}
|
||||
|
||||
w.BeginChild("page." + tab, 0f, 0f, border: false);
|
||||
(current?.Draw ?? DrawAbout)(w);
|
||||
w.EndChild();
|
||||
|
|
|
|||
26
Plugins/RynthCore.Plugin.RynthOracle/Views/SkillsTabs.cs
Normal file
26
Plugins/RynthCore.Plugin.RynthOracle/Views/SkillsTabs.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// ============================================================================
|
||||
// RynthCore.Plugin.RynthOracle - Views/SkillsTabs.cs
|
||||
// Skills / Attributes / Progress tabs: the engine draws SkillsFace into this
|
||||
// window after the Oracle tab strip (ScriptWindowFace + OracleSkillsEmbed).
|
||||
// These Draw methods only reserve the page and document the hand-off.
|
||||
// ============================================================================
|
||||
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
/// <summary>Skills: raise / train (was the standalone Skills panel).</summary>
|
||||
private void DrawSkillsEmbed(UiWindow w)
|
||||
{
|
||||
// Placeholder only: ScriptWindowFace draws SkillsFace into the remaining space.
|
||||
w.Dummy(0f, 1f);
|
||||
}
|
||||
|
||||
/// <summary>Attributes & vitals: same engine body, attributes tab.</summary>
|
||||
private void DrawAttributesEmbed(UiWindow w) => w.Dummy(0f, 1f);
|
||||
|
||||
/// <summary>Progress: ILT progression planners (was Skills → Progression).</summary>
|
||||
private void DrawProgressEmbed(UiWindow w) => w.Dummy(0f, 1f);
|
||||
}
|
||||
Loading…
Reference in a new issue