From 489ddad81e3e99a863d708fb7e581a13e89932f9 Mon Sep 17 00:00:00 2001 From: raeleus Date: Sun, 20 Oct 2024 17:16:13 -0700 Subject: [PATCH] Minor adjustment of #drop text. --- Input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Input.js b/Input.js index 0c6982d..6b4c3ad 100644 --- a/Input.js +++ b/Input.js @@ -2479,7 +2479,7 @@ function doDrop(command) { if (existingItem.quantity == 1) text = `\n${character.name} ${commandName.plural(character.name == "You")} the ${displayItemName.plural(true)}.\n` else if (parseInt(item.quantity) >= parseInt(existingItem.quantity)) text = `${character.name} ${commandName.plural(character.name == "You")} all ${existingItem.quantity} of the ${displayItemName}.` - else text = `\n${character.name} ${commandName.plural(character.name == "You")} ${item.quantity} ${displayItemName}.\n` + else text = `\n${character.name} ${commandName.plural(character.name == "You")} ${item.quantity} ${displayItemName}. \n` existingItem.quantity -= item.quantity if (existingItem.quantity <= 0) { @@ -2488,7 +2488,7 @@ function doDrop(command) { } if (existingItem.quantity > 0) { displayItemName = existingItem.name.plural(existingItem.quantity == 1) - text += ` ${character.name} now ${haveWord} ${existingItem.quantity} ${displayItemName}.\n` + text += `${character.name} now ${haveWord} ${existingItem.quantity} ${displayItemName}.\n` } }