From 5aec80123ce0586340847beeb403830a7e2b5c55 Mon Sep 17 00:00:00 2001 From: Kiwi Tokoeka <82226562+Tokoeka@users.noreply.github.com> Date: Thu, 1 Feb 2024 04:23:14 +1300 Subject: [PATCH 1/3] update debug options (#22) Co-authored-by: Tokoeka --- README.md | 2 +- src/main.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c715269..2f32290 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ keeping-tabs-coinmaster: coinid1=itemid1 keeping-tabs-coinmaster: coinid2=itemid2 ``` -It is recommended that you run `keeping-tabs debug coinmaster` after adding a collection to verify it is registered and is the item you expect. +It is recommended that you run `keeping-tabs debug coinmasters` after adding a collection to verify it is registered and is the item you expect. ## Running diff --git a/src/main.ts b/src/main.ts index 8628011..5955aa0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,6 +85,9 @@ function help(mode: "execute" | "debug") { print(`keeping-tabs debug [command]`, HIGHLIGHT); print(`alias - print all parsed aliases from notes`); print(`collections - print all item target collections from notes`); + print( + `coinmasters - print all coinmaster items, target items (and best option based on mall price) from notes` + ); break; } } From 9fd47e373f3d148c74578d032cb3280a31f41237 Mon Sep 17 00:00:00 2001 From: Kiwi Tokoeka <82226562+Tokoeka@users.noreply.github.com> Date: Thu, 1 Feb 2024 04:23:25 +1300 Subject: [PATCH 2/3] add smash option (#19) Co-authored-by: Tokoeka --- README.md | 2 ++ src/actions.ts | 5 +++++ src/types.ts | 1 + 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 2f32290..eabaf27 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,8 @@ Naming a tab involves specifying what to do with all items in that tab by naming * This will Kmail the item to the specified user (all items will be in a batch). A `#target` option must be specified. * `fuel` * This will convert items in this tab into Asdon Martin fuel +* `smash` + * This will pulverise the items into nuggets/wads via the "Pulverise" skill. * `collection` * This will send any items with a matching keeping-tabs-collection directive in your notes to the relevant party * `coinmaster` diff --git a/src/actions.ts b/src/actions.ts index 1fe2a03..7aa93e5 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -146,6 +146,11 @@ export const actions: { action: (item: Item) => cliExecute(`asdonmartin fuel ${amount(item, options)} ${item}`), }; }, + smash: (options: Options) => { + return { + action: (item: Item) => cliExecute(`smash ${amount(item, options)} ${item}`), + }; + }, collection: (options: Options) => { const kmails = new Map(); return { diff --git a/src/types.ts b/src/types.ts index e080fba..b188e2d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -9,6 +9,7 @@ export const ALL_TAB_TITLES = [ "sell", "closet", "fuel", + "smash", "collection", "low", "coinmaster", From c7173a8872dd6aeebdf223f370031a5a69e5a34b Mon Sep 17 00:00:00 2001 From: Kiwi Tokoeka <82226562+Tokoeka@users.noreply.github.com> Date: Thu, 1 Feb 2024 04:23:41 +1300 Subject: [PATCH 3/3] add limit to low (#21) Co-authored-by: Tokoeka --- README.md | 2 +- src/actions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eabaf27..bfc9f33 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ All options are supported in all tabs, unless specified. They are white space se * `stockN` * (only supported by `mall`, `display`, and `closet`). Ensures `N` copies of the item are stocked in the relevant locations, keeps the rest in your inventory * `limitN` - * (only supported by `mall` and `sell`) Sets a mall limit of `N` copies per person per day + * (only supported by `mall`, `sell`, and `low`) Sets a mall limit of `N` copies per person per day * `priceN` * (only supported by `mall` and `sell`) Sets the price for selling in the mall. * ` { return { action: (item) => { - putShop(mallPrice(item), 0, amount(item, options), item); + putShop(mallPrice(item), options.limit ?? 0, amount(item, options), item); }, }; },