replacing water/lava tiles with one fluid marker

actual fluid not implemented
This commit is contained in:
Minjae Song
2018-12-12 20:32:13 +09:00
parent 6e4cea28e7
commit 95245c8945
9 changed files with 56 additions and 57 deletions

View File

@@ -47,9 +47,10 @@ abstract class GameItem : Comparable<GameItem>, Cloneable {
var nameColour = Color.WHITE
/** In kg */
abstract var baseMass: Double
/** In kg */
abstract var baseToolSize: Double?
abstract var inventoryCategory: String // "weapon", "tool", "armor", etc. (all smallcaps)

View File

@@ -169,6 +169,30 @@ object ItemCodex {
}*/
// test water bucket
itemCodex[9000] = object : GameItem() {
override var dynamicID: ItemID = 9000
override val originalID: ItemID = 9000
override val isUnique: Boolean = true
override val originalName: String = "Infinite Water Bucket"
override var baseMass: Double = 1000.0
override var baseToolSize: Double? = null
override var inventoryCategory: String = "tool"
override var stackable: Boolean = false
override val isDynamic: Boolean = false
override val material: Material = Material(1,1,1,1,1,1,1,1,1,1.0)
override fun startSecondaryUse(delta: Float): Boolean {
return super.startSecondaryUse(delta)
}
}
// read from save (if applicable) and fill dynamicItemDescription