diff --git a/Input.js b/Input.js index 732cd7f..3f7b7ee 100644 --- a/Input.js +++ b/Input.js @@ -1484,7 +1484,7 @@ function doDrop(command) { var itemArgIndex = 0 if (isNaN(arg0)) { - if (allSynonyms.indexOf(arg0.toLowerCase() > -1)) { + if (allSynonyms.indexOf(arg0.toLowerCase()) > -1) { arg0 = Number.MAX_SAFE_INTEGER itemArgIndex++ } else { @@ -1511,9 +1511,9 @@ function doDrop(command) { } else { var existingItem = character.inventory[index] - if (existingItem.quantity == 1) text = `\n${character.name} ${commandName} the ${displayItemName.plural(true)}.\n` - else if (parseInt(item.quantity) >= parseInt(existingItem.quantity)) text = `${character.name} ${commandName} all ${existingItem.quantity} of the ${displayItemName}.` - else text = `\n${character.name} ${commandName} ${item.quantity} ${displayItemName}.\n` + 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` existingItem.quantity -= item.quantity if (existingItem.quantity <= 0) { diff --git a/README.md b/README.md index b2ed66e..51f836d 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ Create locations to travel to and view them in a map See the [user guide here](https://github.com/raeleus/Hashtag-DnD/wiki). Watch the [tutorial video](https://youtu.be/E5TYU7rDaBQ). +v. 0.1.1 +* #note without parameters will store the last action text into the notes +* Minor bug fixes and improvements + v. 0.1.0 * Added `#createlocation`, `#goto`, `#gonorth`, `#gosouth`, `#goeast`, `#gowest`, `#removelocation`, `#clearlocations`, `#getlocation` and `#showlocations` to enable travelling. * Added `#map` to generate an ASCII map based on the locations and player location.