From 8a523c95c481aa499238b3da207b90975efef5c3 Mon Sep 17 00:00:00 2001 From: TastyPumPum <79149170+TastyPumPum@users.noreply.github.com> Date: Sat, 13 Jul 2024 09:33:36 +0100 Subject: [PATCH] Changes --- src/mahoji/lib/abstracted_commands/sepulchreCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;