Snapshot for release 2026.10.15.2 (internal 2d4b0af)
This commit is contained in:
parent
a89ae04005
commit
d5e0b50de7
224 changed files with 17914 additions and 1182 deletions
|
|
@ -4,9 +4,9 @@
|
|||
// One gate for everything ILT-shaped: the Mini Remote's ILT tabs, the Guardian, the Skills
|
||||
// panel's Progression planners and the attribute raiser. A world is "on" when:
|
||||
// * its name matches one of the server patterns (IltSettings.ServerNames, '*' wildcard,
|
||||
// case-insensitive; defaults cover InfiniteLeaftide; "/ilt servers" or the Character tab
|
||||
// case-insensitive; defaults cover InfiniteLeaftide; "/ilt servers"
|
||||
// edits them — they were RynthAi's Settings > Misc "Server Features" list), or
|
||||
// * this character's override is on (the Character tab's "Treat this world as ILT",
|
||||
// * this character's override is on ("Treat this world as ILT",
|
||||
// "/ra hub force on"; also set by migration from RynthAi's "Force enable" profile flag).
|
||||
// The gate only decides whether RynthILT ASKS the server; each feature still follows the
|
||||
// server's own report (IltServerOptions bits), so a shard with /xp off keeps the raiser off.
|
||||
|
|
@ -67,7 +67,11 @@ internal static class ServerFeatureGate
|
|||
return true;
|
||||
}
|
||||
|
||||
/// <summary>The gate itself: the character's override, or the world name in the list.</summary>
|
||||
/// <summary>
|
||||
/// RynthILT's own gate: the character's override, or the world name in the list. RynthCore's
|
||||
/// verdict, once it sends one, takes over in IltServerOptions.IsIltLikeWorld; this stays ours
|
||||
/// (it is what the status export reports, IltServerOptions.IsIltLikeWorldLocal).
|
||||
/// </summary>
|
||||
public static bool IsEnabled(string world, IltSettings? settings, bool forceOn)
|
||||
=> forceOn || NameMatches(world, Patterns(settings), out _);
|
||||
|
||||
|
|
@ -92,6 +96,14 @@ internal static class ServerFeatureGate
|
|||
{
|
||||
world = (world ?? string.Empty).Trim();
|
||||
string shown = world.Length > 0 ? $"'{world}'" : "(not logged in)";
|
||||
var engine = IltSettingsView.IltEngineVerdict.Server;
|
||||
if (engine != null)
|
||||
{
|
||||
string why = engine.Force == "on" ? "forced on for this character"
|
||||
: engine.Force == "off" ? "forced off for this character"
|
||||
: engine.Detected ? "RynthCore recognises the world" : "RynthCore doesn't recognise the world";
|
||||
return $"This world {shown}: {(engine.Active ? "ON" : "OFF")} - {why}.";
|
||||
}
|
||||
if (NameMatches(world, Patterns(settings), out string matched))
|
||||
return $"This world {shown}: ON - matches '{matched}'.";
|
||||
if (forceOn)
|
||||
|
|
|
|||
Loading…
Reference in a new issue