Skip to content

Commit

Permalink
add smash option (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Tokoeka <nzgamer666@gmail.com>
  • Loading branch information
Tokoeka and Tokoeka authored Jan 31, 2024
1 parent 5aec801 commit 9fd47e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 5 additions & 0 deletions src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, Item[]>();
return {
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const ALL_TAB_TITLES = [
"sell",
"closet",
"fuel",
"smash",
"collection",
"low",
"coinmaster",
Expand Down

0 comments on commit 9fd47e3

Please sign in to comment.