Resolving issues #16 and #20

This commit is contained in:
Song Minjae
2017-04-24 02:23:13 +09:00
parent 6399c2d66b
commit 5cd5ebbea3
21 changed files with 158 additions and 76 deletions

View File

@@ -37,9 +37,9 @@ internal object Inventory : ConsoleCommand {
else {
target!!.inventory.forEach {
if (it.amount == 0) {
EchoError("Unexpected zero-amounted item: ID ${it.item.id}")
EchoError("Unexpected zero-amounted item: ID ${it.item.dynamicID}")
}
Echo("ID ${it.item.id}${if (it.amount > 1) " ($it.second)" else ""}")
Echo("ID ${it.item.dynamicID}${if (it.amount > 1) " ($it.second)" else ""}")
}
}
}