Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DayV-git committed Dec 28, 2024
1 parent 9bd1197 commit 35ec50d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/mahoji/commands/hunt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const huntCommand: OSBMahojiCommand = {
Math.min(
Math.floor(
(await user.getCreatureScore(creature.id)) /
(Time.Hour / ((creature.catchTime * Time.Second) / traps))
(Time.Hour / ((creature.catchTime * Time.Second) / traps))
),
creature.huntTechnique === HunterTechniqueEnum.Tracking ? 20 : 10
),
Expand Down Expand Up @@ -250,8 +250,9 @@ export const huntCommand: OSBMahojiCommand = {
break;
}
}
wildyStr = `You are hunting ${creature.name} in the Wilderness during ${wildyPeak?.peakTier
} peak time and potentially risking your equipped body and legs in the wildy setup with a score ${wildyScore} and also risking Saradomin brews and Super restore potions.`;
wildyStr = `You are hunting ${creature.name} in the Wilderness during ${
wildyPeak?.peakTier
} peak time and potentially risking your equipped body and legs in the wildy setup with a score ${wildyScore} and also risking Saradomin brews and Super restore potions.`;
}

await trackLoot({
Expand Down Expand Up @@ -280,8 +281,9 @@ export const huntCommand: OSBMahojiCommand = {
itemCost: removeBank
});

let response = `${user.minionName} is now ${crystalImpling ? 'hunting' : `${creature.huntTechnique}`}${crystalImpling ? ' ' : ` ${quantity}x `
}${creature.name}, it'll take around ${formatDuration(duration)} to finish.`;
let response = `${user.minionName} is now ${crystalImpling ? 'hunting' : `${creature.huntTechnique}`}${
crystalImpling ? ' ' : ` ${quantity}x `
}${creature.name}, it'll take around ${formatDuration(duration)} to finish.`;

if (boosts.length > 0) {
response += `\n\n**Boosts:** ${boosts.join(', ')}.`;
Expand Down
4 changes: 3 additions & 1 deletion src/mahoji/commands/offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ export const offerCommand: OSBMahojiCommand = {
type: 'Offering',
itemCost: cost
});
return `${user.minionName} is now offering ${quantity}x ${bone.name} at the Chaos altar, it'll take around ${formatDuration(duration)} to finish.`;
return `${user.minionName} is now offering ${quantity}x ${
bone.name
} at the Chaos altar, it'll take around ${formatDuration(duration)} to finish.`;
}
};

0 comments on commit 35ec50d

Please sign in to comment.