Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add smash option #19

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading