wire pieces will be 'lit' when it receives power (power propagation not implemented)

This commit is contained in:
minjaesong
2021-08-09 17:28:27 +09:00
parent a9f46613a2
commit 1754c619f5
7 changed files with 35 additions and 9 deletions

View File

@@ -156,6 +156,7 @@ object BlockCodex {
prop.nameKey = record.get("name")
prop.id = "$modname:$key"
prop.numericID = key
prop.drop = "$modname:${intVal(record, "drop")}"
prop.shadeColR = floatVal(record, "shdr")

View File

@@ -12,6 +12,7 @@ import net.torvald.terrarum.serialise.toLittle
class BlockProp {
var id: ItemID = ""
var numericID: Int = -1
var nameKey: String = ""

View File

@@ -104,6 +104,7 @@ object WireCodex {
prop.nameKey = record.get("name")
prop.id = "wire@$modname:$key"
prop.numericID = key
prop.renderClass = record.get("renderclass")
prop.accepts = record.get("accept")
prop.inputCount = intVal(record, "inputcount")

View File

@@ -8,6 +8,7 @@ import net.torvald.terrarum.gameitem.ItemID
class WireProp {
var id: ItemID = ""
var numericID: Int = -1
var nameKey: String = ""
var renderClass: String = ""