diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/item/Item.kt b/core/src/ru/deadsoftware/cavedroid/game/model/item/Item.kt
index a479a4f7280c2ad8d5fd936dd78546a01f13bf74..fe2bc46bad46030cd43eb0a74f284fa4bd8f4629 100644 (file)
contract { returns(true) implies (this@Item is Placeable) }
return this is Placeable
}
+
+ @JvmOverloads
+ fun toInventoryItem(amount: Int = 1): InventoryItem {
+ return InventoryItem(this, amount)
+ }
sealed class Tool : Item() {
abstract val mobDamageMultiplier: Float