From 8893b791b6bf326e92fad337e7e7e73669e8c2d9 Mon Sep 17 00:00:00 2001 From: DayV Date: Mon, 28 Oct 2024 15:14:21 +0000 Subject: [PATCH] Add loot image to failure message --- src/mahoji/commands/clue.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mahoji/commands/clue.ts b/src/mahoji/commands/clue.ts index e62b0ffb7f..e421e6d0fb 100644 --- a/src/mahoji/commands/clue.ts +++ b/src/mahoji/commands/clue.ts @@ -372,12 +372,13 @@ export const clueCommand: OSBMahojiCommand = { response.files = [image.file]; if (bankedClues + implingClues === 0) { - return `You don't have any clues, and didn't find any in ${openedImplings}x ${clueImpling.name}s. At least you received the following loot: ${implingLoot}.`; + response.content = `You don't have any clues, and didn't find any in ${openedImplings}x ${clueImpling.name}s.`; + return response; } quantity = bankedClues + implingClues; implingLootString = `\n\nYou will find ${implingClues} clue${ implingClues === 0 || implingClues > 1 ? 's' : '' - } from ${openedImplings}x ${clueImpling.name}s.`; //, and receive the following loot: ${implingLoot}.`; + } from ${openedImplings}x ${clueImpling.name}s.`; } duration = timeToFinish * quantity;