diff --git a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts index 6534fcce1c..83e0c5c8e1 100644 --- a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts +++ b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts @@ -14,8 +14,8 @@ import type { SlayerTaskUnlocksEnum } from '../../../lib/slayer/slayerUnlocks'; import { hasSlayerUnlock } from '../../../lib/slayer/slayerUtil'; import type { SepulchreActivityTaskOptions } from '../../../lib/types/minions'; import addSubTaskToActivityTask from '../../../lib/util/addSubTaskToActivityTask'; -import { userHasGracefulEquipped } from '../../mahojiSettings'; import { calcMaxTripLength } from '../../../lib/util/calcMaxTripLength'; +import { userHasGracefulEquipped } from '../../mahojiSettings'; export async function sepulchreCommand(user: MUser, channelID: string, fletching?: string) { const skills = user.skillsAsLevels; @@ -101,7 +101,7 @@ export async function sepulchreCommand(user: MUser, channelID: string, fletching return 'Error selecting fletchable.'; } - fletchingQuantity = Math.min(Math.floor(tripLength / timeToFletchSingleItem), max); + fletchingQuantity = Math.floor(tripLength / timeToFletchSingleItem); const max = user.bank.fits(fletchable.inputItems); if (max < fletchingQuantity && max !== 0) fletchingQuantity = max;