mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 18:14:06 +09:00
item is useable (wall is not!); tile breakage works confirmed
This commit is contained in:
@@ -45,7 +45,7 @@ class ActorInventory(@Transient val actor: Pocketed, var maxCapacity: Int, var c
|
||||
init {
|
||||
}
|
||||
|
||||
fun add(itemID: ItemID, count: Int = 1) = add(ItemCodex[itemID]!!, count)
|
||||
fun add(itemID: ItemID, count: Int = 1) = if (ItemCodex[itemID] == null) throw NullPointerException("Item not found: "+itemID) else add(ItemCodex[itemID]!!, count)
|
||||
fun add(item: GameItem, count: Int = 1) {
|
||||
|
||||
println("[ActorInventory] add $item, $count")
|
||||
|
||||
@@ -84,13 +84,13 @@ object PlayerBuilderSigrid {
|
||||
}
|
||||
|
||||
// item ids are defined in <module>/items/itemid.csv
|
||||
/*
|
||||
inventory.add("item@basegame:0", 16) // copper pick
|
||||
inventory.add("item@basegame:1") // iron pick
|
||||
inventory.add("item@basegame:2") // steel pick
|
||||
inventory.add("item@basegame:3", 9995) // wire piece
|
||||
inventory.add("item@basegame:4", 385930603) // test tiki torch
|
||||
inventory.add("item@basegame:5", 95) // crafting table
|
||||
*/
|
||||
|
||||
inventory.add("item@basegame:1", 16) // copper pick
|
||||
inventory.add("item@basegame:2") // iron pick
|
||||
inventory.add("item@basegame:3") // steel pick
|
||||
inventory.add("item@basegame:4", 9995) // wire piece
|
||||
inventory.add("item@basegame:5", 385930603) // test tiki torch
|
||||
//inventory.add("item@basegame:6", 95) // crafting table
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user