Skip to content

Commit

Permalink
Merge branch 'fletch-sepulchre' of https://github.com/TastyPumPum/old…
Browse files Browse the repository at this point in the history
…schoolbot into fletch-sepulchre
  • Loading branch information
TastyPumPum committed Jul 13, 2024
2 parents d58516f + aff23e8 commit 8f42945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mahoji/lib/abstracted_commands/sepulchreCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function sepulchreCommand(user: MUser, channelID: string, fletching
return 'Error selecting fletchable.';
}

fletchingQuantity = Math.floor(tripLength / timeToFletchSingleItem);
fletchingQuantity = Math.min(Math.floor(tripLength / timeToFletchSingleItem), max);
const max = user.bank.fits(fletchable.inputItems);
if (max < fletchingQuantity && max !== 0) fletchingQuantity = max;

Expand Down

0 comments on commit 8f42945

Please sign in to comment.