a new key for blocks.csv; csveditor updates

This commit is contained in:
minjaesong
2022-03-22 11:11:44 +09:00
parent 8974d336c4
commit 000f825849
4 changed files with 197 additions and 151 deletions

View File

@@ -177,7 +177,12 @@ class BlockCodex {
prop.id = "$modname:$key"
prop.numericID = key
prop.drop = "$modname:${record.intVal("drop")}"
// drop and world should be interpreted as:
// "N/A" -> empty string
// otherModname:id -> as-is
// id -> thisModname:id
prop.drop = record.get("drop").let { if (it == null) "" else if (it.contains(':')) it else "$modname:$it" }
prop.world = record.get("world").let { if (it == null) "" else if (it.contains(':')) it else "$modname:$it" }
prop.shadeColR = record.floatVal("shdr")
prop.shadeColG = record.floatVal("shdg")