a console command to fill up inventory with every item

This commit is contained in:
minjaesong
2022-02-22 17:22:54 +09:00
parent df6950c0b8
commit 596cd9b102
5 changed files with 51 additions and 1 deletions

View File

@@ -119,5 +119,11 @@ class ActorInventory() : FixtureInventory() {
//println("[ActorInventory] consumed; ${item.durability}")
}
}
override fun nuke() {
super.nuke()
itemEquipped.fill(null)
quickSlot.fill(null)
}
}

View File

@@ -212,6 +212,10 @@ open class FixtureInventory() {
}
return -(low + 1) // key not found
}
open fun nuke() {
itemList.clear()
}
}
class InventoryPair : Comparable<InventoryPair> {