From 1c6a4192b6178184495c46e18e64996b9943efc5 Mon Sep 17 00:00:00 2001 From: DayV Date: Sat, 7 Dec 2024 12:08:37 +0000 Subject: [PATCH] Allow quantity in gear --- src/mahoji/lib/abstracted_commands/gearCommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mahoji/lib/abstracted_commands/gearCommands.ts b/src/mahoji/lib/abstracted_commands/gearCommands.ts index 98f4f23fe5..bbae28cb27 100644 --- a/src/mahoji/lib/abstracted_commands/gearCommands.ts +++ b/src/mahoji/lib/abstracted_commands/gearCommands.ts @@ -172,7 +172,7 @@ export async function gearEquipCommand(args: { unEquippedItem: Bank | undefined; auto: string | undefined; }): CommandResponse { - const { userID, setup, item, items, preset, quantity: _quantity, auto } = args; + const { userID, setup, item, items, preset, quantity, auto } = args; if (!isValidGearSetup(setup)) return 'Invalid gear setup.'; const user = await mUserFetch(userID); if (minionIsBusy(user.id)) { @@ -197,7 +197,7 @@ export async function gearEquipCommand(args: { } // They are trying to equip 1 item - return gearEquipMultiCommand(user, setup, item); + return gearEquipMultiCommand(user, setup, `${quantity ? quantity : 1} ${item}`); } export async function gearUnequipCommand(