Skip to content

Commit

Permalink
Fix Zahur/Wesley Costs (#5706)
Browse files Browse the repository at this point in the history
Fix the check on wesley/zahur to pick the right cost if the users selects true to both options, it also returns the correct name.

Closes #5698
  • Loading branch information
TastyPumPum authored Feb 22, 2024
1 parent c0595e8 commit 9f07368
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mahoji/commands/mix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ export const mixCommand: OSBMahojiCommand = {

if ((zahur && mixableZahur) || (wesley && mixableWesley)) {
timeToMixSingleItem = 0.000_001;
requiredItems.add('Coins', wesley ? 50 : 200);
cost = `decided to pay ${wesley ? 'Wesley 50' : 'Zahur 200'} gp for each item so they don't have to go`;
requiredItems.add('Coins', mixableWesley ? 50 : 200);
cost = `decided to pay ${
mixableWesley ? 'Wesley 50' : 'Zahur 200'
} gp for each item so they don't have to go.`;
}

const maxTripLength = calcMaxTripLength(user, 'Herblore');
Expand Down

0 comments on commit 9f07368

Please sign in to comment.