Skip to content

Commit

Permalink
Add loot image to failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
DayV-git committed Oct 28, 2024
1 parent 1fc98e7 commit 8893b79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mahoji/commands/clue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8893b79

Please sign in to comment.