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 2b6b5fcd2498e82c29e925a685473dafd1d0e360..7eeb9403a88a636f843998a18b98188bbedaf2c0 100644 (file)
return this is Slab
}
-
fun isTool(): Boolean {
contract { returns(true) implies (this@Item is Tool) }
return this is Tool
}
+ fun isShears(): Boolean {
+ contract { returns(true) implies (this@Item is Shears) }
+ return this is Shears
+ }
+
fun isUsable(): Boolean {
contract { returns(true) implies (this@Item is Placeable) }
return this is Placeable