Merge rynth/main (2026.10.8.1) into sk/features-on-rynth-main

Resolves the conflicts that kept PR #2 from merging. Where rynth/main
already ships the same feature, its version wins: the shared read-only
RynthInstallPaths, /ra iteminfo (PR #2's Mag-Tools item info window is
dropped), pet essence refill trust, object filing, spell metadata and the
Monster Editor's Category / MatchExpression.

See Changelog/2026-10-08-merge-rynth-main-into-pr2.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-08 22:23:49 -04:00
commit 2e54796b15
160 changed files with 15447 additions and 2566 deletions

View file

@ -145,6 +145,15 @@ internal sealed class MetaManager
_expressions?.SetCreatureStore(store);
}
// The plugin's kill clock (secondssincelastkill[], No Kills Within Minutes). Without one
// (never in the plugin) the condition is false and the function says 0: fail closed.
private KillClock? _killClock;
public void SetKillClock(KillClock? clock)
{
_killClock = clock;
_expressions?.SetKillClock(clock);
}
public void SetPlayerId(uint id)
{
_playerId = id;
@ -201,6 +210,7 @@ internal sealed class MetaManager
engine.SetQuestTracker(_questTracker);
engine.SetSettings(_settings);
engine.SetCreatureStore(_creatureStore);
engine.SetKillClock(_killClock);
return engine;
}
@ -728,6 +738,14 @@ internal sealed class MetaManager
case MetaConditionType.NeedToBuff:
return _buffManager != null && _buffManager.NeedsAnyBuff();
// ── No kills within N minutes (RynthAi only) ──────────────────────
// The secondssincelastkill[] clock: our last kill (KillerNotification), or before
// the first one the last macro start / login. Bad or missing minutes never hold.
case MetaConditionType.NoKillsWithinMinutes:
return _killClock != null
&& KillClock.TryParseMinutes(rule.ConditionData, out double noKillMins)
&& _killClock.NoKillsFor(noKillMins);
default: return false;
}
}
@ -893,7 +911,7 @@ internal sealed class MetaManager
}
// Fallback: a standalone .nav file in NavProfiles.
string navFolder = System.IO.Path.Combine(RynthInstallPaths.RynthAiDir, @"NavProfiles");
string navFolder = System.IO.Path.Combine(RynthCore.Install.RynthInstallPaths.RynthAiDir, "NavProfiles");
string fullPath = Path.Combine(navFolder, routeName + ".nav");
if (File.Exists(fullPath))
{
@ -1092,7 +1110,7 @@ internal sealed class MetaManager
parts[2].Equals("load", StringComparison.OrdinalIgnoreCase))
{
string name = string.Join(" ", parts, 3, parts.Length - 3);
string metaDir = System.IO.Path.Combine(RynthInstallPaths.RynthAiDir, @"MetaFiles");
string metaDir = System.IO.Path.Combine(RynthCore.Install.RynthInstallPaths.RynthAiDir, "MetaFiles");
string afPath = Path.Combine(metaDir, name + ".af");
string metPath = Path.Combine(metaDir, name + ".met");
@ -1156,7 +1174,7 @@ internal sealed class MetaManager
string path = name;
if (!File.Exists(path))
{
string folder = @"C:\Games\RynthSuite\RynthAi\LootProfiles";
string folder = System.IO.Path.Combine(RynthCore.Install.RynthInstallPaths.RynthAiDir, "LootProfiles");
string stem = name.EndsWith(".utl", StringComparison.OrdinalIgnoreCase) || name.EndsWith(".json", StringComparison.OrdinalIgnoreCase)
? name : name + ".utl";
string candidate = Path.Combine(folder, stem);