RynthServers as of 2026-11-23 (internal 1f7af0d): release 2026.11.23.1

This commit is contained in:
Tom Bohar 2026-11-23 11:13:54 -05:00
commit b415c3add0
4 changed files with 92 additions and 0 deletions

View file

@ -45,6 +45,17 @@ internal sealed record ServerSalvage(string Bench, int Material, string Effect,
bool Prepared = false, int Order = 0, bool AfterCap = false,
string StackGroup = "", int StackCap = 0);
/// <summary>
/// One summon item of the server's own that holds other summoning items (a "holder"), for RynthAi's
/// combat summoner (its profile's "summons" list; RynthSuite's ServerSummonView reads it).
/// </summary>
/// <param name="Wcid">The item's wcid (0 = told by name only).</param>
/// <param name="NameMatch">The item's name holds this ("" with a wcid = by wcid only).</param>
/// <param name="SlotPrefix">Its appraisal description names each held item on a line "&lt;prefix&gt;&lt;n&gt;: &lt;name&gt;".</param>
/// <param name="Slots">It summons nothing until it holds this many.</param>
/// <param name="ElementIsLast">Its own element (UiEffects) is the last held item's.</param>
internal sealed record ServerSummon(uint Wcid, string NameMatch, string SlotPrefix, int Slots = 2, bool ElementIsLast = false);
internal sealed class ServerPackInfo
{
public ServerPackInfo(string id, string name, string[] hosts, string[] worldNames)
@ -85,6 +96,8 @@ internal sealed class ServerPackInfo
/// </summary>
public string[] TrinketNames { get; init; } = Array.Empty<string>();
public string[] TrinketExcept { get; init; } = Array.Empty<string>();
/// <summary>The server's own summon items that hold other summoning items; empty = none.</summary>
public ServerSummon[] Summons { get; init; } = Array.Empty<ServerSummon>();
/// <summary>"3 accounts", "3 active characters", ...; empty when not published.</summary>
public string AccountLimit { get; init; } = string.Empty;
public BottingPolicy Botting { get; init; } = BottingPolicy.Unknown;

View file

@ -185,6 +185,26 @@ internal static class ServerPackProfile
for (int i = 0; i < info.TrinketExcept.Length; i++) { if (i > 0) sb.Append(','); Str(sb, info.TrinketExcept[i]); }
sb.Append("]}");
}
// Added within schema 1 (2026-11-22), only when the server has them: summon items that hold
// other summoning items (RynthAi's combat summoner reads each one's held items and elements).
if (info.Summons.Length > 0)
{
sb.Append(",\"summons\":[");
for (int i = 0; i < info.Summons.Length; i++)
{
ServerSummon m = info.Summons[i];
if (i > 0) sb.Append(',');
sb.Append("{\"wcid\":").Append(m.Wcid);
sb.Append(",\"nameMatch\":");
Str(sb, m.NameMatch);
sb.Append(",\"slotPrefix\":");
Str(sb, m.SlotPrefix);
sb.Append(",\"slots\":").Append(m.Slots);
sb.Append(",\"elementIsLast\":").Append(m.ElementIsLast ? "true" : "false");
sb.Append('}');
}
sb.Append(']');
}
Field(sb, "discord", info.Discord);
Field(sb, "website", info.Website);
Field(sb, "wiki", info.Wiki);