Add shortcut commands for /dbq requests for shards/crystals/clusters

This commit is contained in:
Liza 2024-11-10 00:32:16 +01:00
parent 74d32c070b
commit e573b792d8
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -59,7 +59,7 @@ internal sealed class DropboxQueue : IDisposable
{ {
HelpMessage = HelpMessage =
$"Queue items to be imported into dropbox{Environment.NewLine}" + $"Queue items to be imported into dropbox{Environment.NewLine}" +
$"\t/dbq item1:qty1 item2:qty2 [...] - queues items for the next trade (use * as quantity for 'all'){Environment.NewLine}n" + $"\t/dbq item1:qty1 item2:qty2 [...] - queues items for the next trade (use * as quantity for 'all'){Environment.NewLine}" +
$"\t/dbq clear - remove all items in the queue{Environment.NewLine}" + $"\t/dbq clear - remove all items in the queue{Environment.NewLine}" +
$"\t/dbq request item1:qty1 item2:qty2 [...] - show the command to fill your inventory with the specific item quantities{Environment.NewLine}" + $"\t/dbq request item1:qty1 item2:qty2 [...] - show the command to fill your inventory with the specific item quantities{Environment.NewLine}" +
$"\t/dbq [shards/crystals/shards+crystals] - show the command to fill shards and/or crystals to 9999" $"\t/dbq [shards/crystals/shards+crystals] - show the command to fill shards and/or crystals to 9999"
@ -71,21 +71,27 @@ internal sealed class DropboxQueue : IDisposable
string[] parts = arguments.Split(" ", 2); string[] parts = arguments.Split(" ", 2);
switch (parts[0]) switch (parts[0])
{ {
case "*s":
case "shards": case "shards":
BuildRequest(string.Join(" ", Enumerable.Range(2, 6).Select(x => $"{x}:9999"))); BuildRequest(string.Join(" ", Enumerable.Range(2, 6).Select(x => $"{x}:9999")));
break; break;
case "*c":
case "crystals": case "crystals":
BuildRequest(string.Join(" ", Enumerable.Range(8, 6).Select(x => $"{x}:9999"))); BuildRequest(string.Join(" ", Enumerable.Range(8, 6).Select(x => $"{x}:9999")));
break; break;
case "*x":
case "clusters": case "clusters":
BuildRequest(string.Join(" ", Enumerable.Range(14, 6).Select(x => $"{x}:9999"))); BuildRequest(string.Join(" ", Enumerable.Range(14, 6).Select(x => $"{x}:9999")));
break; break;
case "*sc":
case "shards+crystals": case "shards+crystals":
BuildRequest(string.Join(" ", Enumerable.Range(2, 12).Select(x => $"{x}:9999"))); BuildRequest(string.Join(" ", Enumerable.Range(2, 12).Select(x => $"{x}:9999")));
break; break;
case "*cx":
case "crystals+clusters": case "crystals+clusters":
BuildRequest(string.Join(" ", Enumerable.Range(8, 12).Select(x => $"{x}:9999"))); BuildRequest(string.Join(" ", Enumerable.Range(8, 12).Select(x => $"{x}:9999")));
break; break;
case "*scx":
case "shards+crystals+clusters": case "shards+crystals+clusters":
BuildRequest(string.Join(" ", Enumerable.Range(2, 18).Select(x => $"{x}:9999"))); BuildRequest(string.Join(" ", Enumerable.Range(2, 18).Select(x => $"{x}:9999")));
break; break;