Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Jul 13, 2024
1 parent 8f42945 commit 8a523c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mahoji/lib/abstracted_commands/sepulchreCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 8a523c9

Please sign in to comment.