Skip to content

Commit

Permalink
only check itemAmount not availableAmount (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime authored Dec 13, 2024
1 parent 3e3a509 commit f204c3c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/garbo/src/tasks/barfTurn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function getAutosellableMeltingJunk(): Item[] {
(i) =>
(getModifier("Lasts Until Rollover", i) ||
(globalOptions.ascend && i.quest)) &&
have(i) &&
itemAmount(i) &&
autosellPrice(i) > 0 &&
(globalOptions.ascend ||
!(
Expand Down Expand Up @@ -550,9 +550,7 @@ const NonBarfTurnTasks: AlternateTask[] = [
spendsTurn: false,
turns: 0,
do: () =>
getAutosellableMeltingJunk().forEach((i) =>
autosell(i, availableAmount(i)),
),
getAutosellableMeltingJunk().forEach((i) => autosell(i, itemAmount(i))),
},
{
name: "Use Day Shorteners (drunk)",
Expand Down

0 comments on commit f204c3c

Please sign in to comment.