From e573b792d8deaca7c16d5e7689d87c40effb3815 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sun, 10 Nov 2024 00:32:16 +0100 Subject: [PATCH] Add shortcut commands for /dbq requests for shards/crystals/clusters --- KitchenSink/Commands/DropboxQueue.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/KitchenSink/Commands/DropboxQueue.cs b/KitchenSink/Commands/DropboxQueue.cs index 70d3b3a..5c5b3d7 100644 --- a/KitchenSink/Commands/DropboxQueue.cs +++ b/KitchenSink/Commands/DropboxQueue.cs @@ -59,7 +59,7 @@ internal sealed class DropboxQueue : IDisposable { HelpMessage = $"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 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" @@ -71,21 +71,27 @@ internal sealed class DropboxQueue : IDisposable string[] parts = arguments.Split(" ", 2); switch (parts[0]) { + case "*s": case "shards": BuildRequest(string.Join(" ", Enumerable.Range(2, 6).Select(x => $"{x}:9999"))); break; + case "*c": case "crystals": BuildRequest(string.Join(" ", Enumerable.Range(8, 6).Select(x => $"{x}:9999"))); break; + case "*x": case "clusters": BuildRequest(string.Join(" ", Enumerable.Range(14, 6).Select(x => $"{x}:9999"))); break; + case "*sc": case "shards+crystals": BuildRequest(string.Join(" ", Enumerable.Range(2, 12).Select(x => $"{x}:9999"))); break; + case "*cx": case "crystals+clusters": BuildRequest(string.Join(" ", Enumerable.Range(8, 12).Select(x => $"{x}:9999"))); break; + case "*scx": case "shards+crystals+clusters": BuildRequest(string.Join(" ", Enumerable.Range(2, 18).Select(x => $"{x}:9999"))); break;