diff --git a/src/mahoji/commands/mix.ts b/src/mahoji/commands/mix.ts index 900e8659a9..a0169183be 100644 --- a/src/mahoji/commands/mix.ts +++ b/src/mahoji/commands/mix.ts @@ -103,11 +103,17 @@ export const mixCommand: OSBMahojiCommand = { const maxCanDo = user.bankWithGP.fits(baseCost); const maxCanMix = Math.floor(maxTripLength / timeToMixSingleItem); + if (!user.owns(requiredItems)) { + return `You don't have the required items for ${mixableItem.item.name}: ${requiredItems}.`; + } + if (!quantity) { quantity = maxCanMix; if (maxCanDo < quantity && maxCanDo !== 0) quantity = maxCanDo; } + quantity = Math.max(1, quantity); + if (quantity * timeToMixSingleItem > maxTripLength) return `${user.minionName} can't go on trips longer than ${formatDuration( maxTripLength