DreamWeave: abilities link opens the live class ability page
The third bar-menu item (and card button on older engines) now opens /play/abilities, the live class ability panel, labelled Class Abilities. /rserver abilities keeps its verb. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
806f5268fd
commit
6570ff1bc1
8 changed files with 10 additions and 8 deletions
|
|
@ -46,7 +46,7 @@ internal static class DreamWeaveWebTests
|
|||
{
|
||||
new[] { "market", "Market", ((char)0xE470).ToString(), "/rserver market" },
|
||||
new[] { "suit", "Suit Builder", ((char)0xE40A).ToString(), "/rserver suit" },
|
||||
new[] { "abilities", "Ability Planner", ((char)0xE6A2).ToString(), "/rserver abilities" },
|
||||
new[] { "abilities", "Class Abilities", ((char)0xE6A2).ToString(), "/rserver abilities" },
|
||||
};
|
||||
Check.Eq(items.Count, want.Length, "one item per destination");
|
||||
for (int i = 0; i < want.Length && i < items.Count; i++)
|
||||
|
|
@ -581,6 +581,8 @@ internal static class DreamWeaveWebTests
|
|||
Check.Eq(url, DreamWeaveWeb.SiteBase + "/launch?code=" + Code + "&to=%2Ftools%2Fsuit", "exact suit url");
|
||||
Check.True(url.EndsWith("%2Ftools%2Fsuit", StringComparison.Ordinal), "ends with the escaped path");
|
||||
Check.Eq(url.Split("&to=").Length - 1, 1, "exactly one &to=");
|
||||
Check.Eq(DreamWeaveWeb.LaunchUrl(Code, DreamWeaveWeb.ById("abilities")!),
|
||||
DreamWeaveWeb.SiteBase + "/launch?code=" + Code + "&to=%2Fplay%2Fabilities", "abilities opens the live class ability page");
|
||||
|
||||
foreach (WebDestination d in DreamWeaveWeb.Destinations)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ internal static class ServerPackCommandsTests
|
|||
// DreamWeave's verbs follow the shared two.
|
||||
string[] dw = ServerPackCommands.Usage("DreamWeave", new List<string> { RynthCore.Plugin.RynthDreamWeave.DreamWeaveWeb.UsageLine() });
|
||||
Check.Eq(dw.Length, 3, "DreamWeave: three usage lines");
|
||||
Check.Eq(dw[2], "/rserver market | suit | abilities - open the website's Market, Suit Builder or Ability Planner, logged in as this account.", "DreamWeave's own line");
|
||||
Check.Eq(dw[2], "/rserver market | suit | abilities - open the website's Market, Suit Builder or Class Abilities, logged in as this account.", "DreamWeave's own line");
|
||||
Check.True(dw[0] == ServerPackCommands.Usage("DreamWeave")[0] && dw[1] == ServerPackCommands.Usage("DreamWeave")[1], "the shared two come first, unchanged");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ internal static class ServerPackModelTests
|
|||
{
|
||||
new ServerBarMenuItem("market", "Market", ((char)0xE470).ToString(), "/rserver market"),
|
||||
new ServerBarMenuItem("suit", "Suit Builder", ((char)0xE40A).ToString(), "/rserver suit"),
|
||||
new ServerBarMenuItem("abilities", "Ability Planner", ((char)0xE6A2).ToString(), "/rserver abilities"),
|
||||
new ServerBarMenuItem("abilities", "Class Abilities", ((char)0xE6A2).ToString(), "/rserver abilities"),
|
||||
};
|
||||
|
||||
private static void NoBarMenuKey()
|
||||
|
|
|
|||
Loading…
Reference in a new issue