From a1089f4f0987521264f1cdc5193032a453d871c0 Mon Sep 17 00:00:00 2001 From: Tokoeka Date: Fri, 26 Jan 2024 15:31:55 +0000 Subject: [PATCH] autosell untradables added to a sell filter --- src/actions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions.ts b/src/actions.ts index 1824ff1..b804ba0 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -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);