mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 20:14:05 +09:00
a console command to fill up inventory with every item
This commit is contained in:
@@ -119,5 +119,11 @@ class ActorInventory() : FixtureInventory() {
|
||||
//println("[ActorInventory] consumed; ${item.durability}")
|
||||
}
|
||||
}
|
||||
|
||||
override fun nuke() {
|
||||
super.nuke()
|
||||
itemEquipped.fill(null)
|
||||
quickSlot.fill(null)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -212,6 +212,10 @@ open class FixtureInventory() {
|
||||
}
|
||||
return -(low + 1) // key not found
|
||||
}
|
||||
|
||||
open fun nuke() {
|
||||
itemList.clear()
|
||||
}
|
||||
}
|
||||
|
||||
class InventoryPair : Comparable<InventoryPair> {
|
||||
|
||||
Reference in New Issue
Block a user