mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 05:00:26 -04:00
Minor adjustment of #drop text.
This commit is contained in:
parent
d25b9075bb
commit
489ddad81e
1 changed files with 2 additions and 2 deletions
4
Input.js
4
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`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue