Minor adjustment of #drop text.

This commit is contained in:
raeleus 2024-10-20 17:16:13 -07:00
parent d25b9075bb
commit 489ddad81e

View file

@ -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`
}
}