Skip to content

Commit 088e2fe

Browse files
committed
Weylon's Review
Signed-off-by: Arufonsu <17498701+Arufonsu@users.noreply.github.com>
1 parent 5915249 commit 088e2fe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Intersect.Client.Core/Entities/Player.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,15 +415,16 @@ public void TryDropItem(int inventorySlotIndex)
415415
}
416416

417417
var quantity = inventorySlot.Quantity;
418-
var canDropMultiple = GetQuantityOfItemInInventory(itemDescriptor.Id) > 1;
418+
var maxQuantity = GetQuantityOfItemInInventory(itemDescriptor.Id);
419+
var canDropMultiple = maxQuantity > 1;
419420
var inputType = canDropMultiple ? InputType.NumericSliderInput : InputType.YesNo;
420421
var prompt = canDropMultiple ? Strings.Inventory.DropItemPrompt : Strings.Inventory.DropPrompt;
421422
_ = new InputBox(
422423
title: Strings.Inventory.DropItemTitle,
423424
prompt: prompt.ToString(itemDescriptor.Name),
424425
inputType: inputType,
425426
quantity: quantity,
426-
maximumQuantity: GetQuantityOfItemInInventory(itemDescriptor.Id),
427+
maximumQuantity: maxQuantity,
427428
userData: inventorySlotIndex,
428429
onSubmit: (sender, args) =>
429430
{

0 commit comments

Comments
 (0)