Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPumPum committed Mar 12, 2024
1 parent 7c2ee78 commit 8e5a452
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/tasks/minions/HunterActivity/hunterActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,17 @@ export const hunterTask: MinionTask = {
duration
});

let str = `${user}, ${user.minionName} finished hunting ${
creature.name
} ${quantity}x times, due to clever creatures you missed out on ${
quantity - successfulQuantity
}x catches. ${xpStr}`;

str += `\n\nYou received: ${itemsAdded}.${magicSecStr.length > 1 ? magicSecStr : ''}`;
let str = `${user}, ${user.minionName} finished hunting ${creature.name}${
crystalImpling
? '.'
: `${quantity}x times, due to clever creatures you missed out on ${
quantity - successfulQuantity
}x catches. `
}${xpStr}`;

if (!crystalImpling) {
str += `\n\nYou received: ${itemsAdded}.${magicSecStr.length > 1 ? magicSecStr : ''}`;
}

if (gotPked && !died) {
str += `\n${pkStr}`;
Expand Down

0 comments on commit 8e5a452

Please sign in to comment.