Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Jul 12, 2024
1 parent f62f4e5 commit ef31ca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mahoji/commands/minigames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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?: {};
Expand Down
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 @@ -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);
Expand Down

0 comments on commit ef31ca8

Please sign in to comment.