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 limit to low #21

Merged
merged 1 commit 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: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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.
* `<N`
Expand Down
2 changes: 1 addition & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const actions: {
low: (options) => {
return {
action: (item) => {
putShop(mallPrice(item), 0, amount(item, options), item);
putShop(mallPrice(item), options.limit ?? 0, amount(item, options), item);
},
};
},
Expand Down
Loading