RynthSuite as of 2026-11-26 (internal 1db112e): release 2026.11.26.1

This commit is contained in:
Tom Bohar 2026-11-26 22:32:31 -05:00
commit 25552fa794
175 changed files with 23428 additions and 494 deletions

View file

@ -33,8 +33,38 @@ internal sealed class Quest
/// <summary>The Name column: the curated name, else the one-line info, else "Unknown quest" (upstream's rule).</summary>
public string DisplayName => Name.Length > 0 ? Name : Info.Length > 0 ? Info : "Unknown quest";
/// <summary>The list label: the display name, or for a flag no list knows "(new)" and its description or flag.</summary>
public string Label => IsNew ? "(new) " + (Name.Length > 0 ? Name : Flag) : DisplayName;
/// <summary>Another quest in the list has the same name (set when the list is built).</summary>
internal bool NameShared;
private string? _detail;
/// <summary>
/// What sets this quest apart from the others of its name: its info's first sentence, with
/// "Pickup timer for", "Timer for", "Cooldown for" and "Counter for" taken off. "" without info.
/// R-20261124-141130-ca54: 11 rows read "Colosseum Bosses", the weekly Gladiator Diemos token
/// timer (pickedupmarkerboss10x) among them, and nothing on the row said which was which.
/// </summary>
public string Detail => _detail ??= DetailOf(Info);
/// <summary>The list label: the display name ("Name: detail" when the name is shared), or for a flag no list knows "(new)" and its description or flag.</summary>
public string Label => IsNew ? "(new) " + (Name.Length > 0 ? Name : Flag)
: NameShared && Name.Length > 0 && Detail.Length > 0 ? Name + ": " + Detail : DisplayName;
/// <summary>The Quest Timers window's label: the detail alone when the name is shared, else the label.</summary>
public string ShortLabel => !IsNew && NameShared && Name.Length > 0 && Detail.Length > 0 ? Detail : Label;
private static readonly string[] DetailPrefixes = { "Pickup timer for ", "Timer for ", "Cooldown for ", "Counter for " };
internal static string DetailOf(string info)
{
string s = (info ?? "").Trim();
int stop = s.IndexOf(". ", StringComparison.Ordinal);
if (stop >= 0) s = s.Substring(0, stop);
s = s.TrimEnd('.', ' ');
foreach (string p in DetailPrefixes)
if (s.StartsWith(p, StringComparison.OrdinalIgnoreCase) && s.Length > p.Length) { s = s.Substring(p.Length); break; }
return s.Length > 0 ? char.ToUpperInvariant(s[0]) + s.Substring(1) : s;
}
/// <summary>The server is the source of truth where it has spoken (the flag's timer); else the lists.</summary>
public bool IsRepeatable(QuestFlagStore flags) =>
@ -267,6 +297,12 @@ internal sealed class QuestCatalog
retail -= hidden;
}
var names = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
foreach (Quest q in _quests)
if (q.Name.Length > 0) names[q.Name] = names.TryGetValue(q.Name, out int n) ? n + 1 : 1;
foreach (Quest q in _quests)
q.NameShared = q.Name.Length > 0 && names.TryGetValue(q.Name, out int n) && n > 1;
RetailCount = retail;
ServerCount = server;
HiddenCount = hidden;

View file

@ -55,7 +55,7 @@ internal sealed class QuestTimersView
{
string flag = q.Flag;
Quest row = q;
w.Selectable(Cut(q.Label, 26), "qt.r." + flag, false, () => _c.PrintQuest(row), StatusX - 10f);
w.Selectable(Cut(q.ShortLabel, 26), "qt.r." + flag, false, () => _c.PrintQuest(row), StatusX - 10f);
string reward = _c.Book.RewardText(flag);
w.Tooltip((reward.Length > 0 ? $"{q.Label}\n{flag}\nRewards: {reward}" : $"{q.Label}\n{flag}") + "\nClick: prints its texts in chat.");
w.SameLine(StatusX);

View file

@ -686,8 +686,9 @@ internal sealed partial class OracleView
bool done = q.IsComplete(flags);
if (_qDone != _qNotDone && done != _qDone) continue;
if (_qRepeatable != _qOneTime && q.IsRepeatable(flags) != _qRepeatable) continue;
if (!MatchesAll(q.Flag + " " + q.DisplayName, terms)) continue;
_questRows.Add(new QuestRow { Kind = QuestKind.Quest, Key = q.Flag, Label = q.DisplayName, Done = done, Q = q });
// The info and hint too: "Diemos" finds the Gladiator Diemos token timer, whose name is "Colosseum Bosses".
if (!MatchesAll(q.Flag + " " + q.Label + " " + q.Info + " " + q.Hint, terms)) continue;
_questRows.Add(new QuestRow { Kind = QuestKind.Quest, Key = q.Flag, Label = q.Label, Done = done, Q = q });
}
}