Skip to content

Commit

Permalink
autosell untradables added to a sell filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokoeka authored and pstalcup committed Jan 28, 2024
1 parent a3e3368 commit a1089f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export const actions: {
sell: (options: Options) => {
return {
action: (item: Item) => {
if (wellStocked(`${item}`, 1000, Math.max(100, autosellPrice(item) * 2))) {
if (
wellStocked(`${item}`, 1000, Math.max(100, autosellPrice(item) * 2)) ||
!item.tradeable
) {
autosell(amount(item, options), item);
} else {
putShop(0, 0, amount(item, options), item);
Expand Down

0 comments on commit a1089f4

Please sign in to comment.