From ef31ca8b97f1bef756ae2f8d7cb5791ad97726ac Mon Sep 17 00:00:00 2001 From: TastyPumPum <79149170+TastyPumPum@users.noreply.github.com> Date: Fri, 12 Jul 2024 21:21:15 +0100 Subject: [PATCH] Lint --- src/mahoji/commands/minigames.ts | 4 ++-- src/mahoji/lib/abstracted_commands/sepulchreCommand.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mahoji/commands/minigames.ts b/src/mahoji/commands/minigames.ts index 6ac8724fdd..106f0d06d4 100644 --- a/src/mahoji/commands/minigames.ts +++ b/src/mahoji/commands/minigames.ts @@ -4,6 +4,7 @@ import { ApplicationCommandOptionType } from 'discord.js'; import { LMSBuyables } from '../../lib/data/CollectionsExport'; import TrekShopItems from '../../lib/data/buyables/trekBuyables'; import Darts from '../../lib/skilling/skills/fletching/fletchables/darts'; +import type { Fletchable } from '../../lib/skilling/types'; import { agilityArenaBuyCommand, agilityArenaBuyables, @@ -87,7 +88,6 @@ import { nightmareZoneImbueCommand, nightmareZoneImbueables } from './../lib/abstracted_commands/nightmareZoneCommand'; -import type { Fletchable } from '../../lib/skilling/types'; export const minigamesCommand: OSBMahojiCommand = { name: 'minigames', @@ -1084,7 +1084,7 @@ export const minigamesCommand: OSBMahojiCommand = { start?: { difficulty: string; quantity?: number }; buy?: { reward: string; difficulty: string; quantity?: number }; }; - sepulchre?: { start?: { fletch?: Fletchable["name"] } }; + sepulchre?: { start?: { fletch?: Fletchable['name'] } }; gauntlet?: { start?: { corrupted?: boolean } }; mage_training_arena?: { start?: {}; diff --git a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts index 07bac9e962..1b12c978c8 100644 --- a/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts +++ b/src/mahoji/lib/abstracted_commands/sepulchreCommand.ts @@ -83,9 +83,9 @@ export async function sepulchreCommand(user: MUser, channelID: string, fletch?: } } - let timeToFletchSingleItem = fletchable.tickRate * Time.Second * 0.6 + Time.Second / 4; + let timeToFletchSingleItem = (fletchable.tickRate * Time.Second * 0.6 + Time.Second / 4) * 0.318; if (fletchable.tickRate < 1) { - timeToFletchSingleItem = fletchable.tickRate * Time.Second * 0.6; + timeToFletchSingleItem = fletchable.tickRate * Time.Second * 0.6 * 0.24; } fletchingQuantity = Math.floor(tripLength / timeToFletchSingleItem);