Distiction between column and sandstone

This commit is contained in:
Wuzzy 2019-08-24 17:43:18 +02:00
parent 71393b0368
commit e3a6dac028

239
room.lua
View File

@ -11,11 +11,11 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" ","^"," ","^"," ","^"," ","^"," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" ","v"," ","v"," ","v"," ","v"," ",
" "," "," "," "," "," "," "," "," "
},
@ -41,13 +41,13 @@ local room_types = {
style = "yrepeat",
layout = {
" "," "," "," ","v"," "," "," "," ",
" ","s","s"," "," "," ","s","s"," ",
" ","s","s"," "," "," ","s","s"," ",
" ","c","c"," "," "," ","c","c"," ",
" ","c","c"," "," "," ","c","c"," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," ","<",
" "," "," "," "," "," "," "," "," ",
" ","s","s"," "," "," ","s","s"," ",
" ","s","s"," "," "," ","s","s"," ",
" ","c","c"," "," "," ","c","c"," ",
" ","c","c"," "," "," ","c","c"," ",
" "," "," "," ","^"," "," "," "," "
},
},
@ -57,11 +57,11 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," ","s","S","s","S","s"," "," ",
" "," ","c","S","c","S","c"," "," ",
" "," ","S"," "," "," ","S"," "," ",
" "," ","s"," ",">"," ","s"," ","<",
" "," ","c"," ",">"," ","c"," ","<",
" "," ","S"," "," "," ","S"," "," ",
" "," ","s","S","s","S","s"," "," ",
" "," ","c","S","c","S","c"," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," "
},
@ -73,10 +73,10 @@ local room_types = {
" "," "," "," "," "," "," "," "," ",
" ","S","S","S","S","S","S","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," ","s","s","s"," ","S"," ",
" ","S"," ","s","v","s"," ","S"," ",
"S","S"," ","s"," ","s"," ","S"," ",
"S","S"," ","s"," "," "," ","S"," ",
" ","S"," ","c","c","c"," ","S"," ",
" ","S"," ","c","v","c"," ","S"," ",
"S","S"," ","c"," ","c"," ","S"," ",
"S","S"," ","c"," "," "," ","S"," ",
"v","S"," ","S","S","S","S","S"," ",
" ","S"," "," "," "," "," "," "," "
},
@ -87,10 +87,10 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" ","S","S","S","S","S","S","S"," ",
" "," "," ","s"," "," "," ","S"," ",
"S","S"," ","s"," ","s"," ","S"," ",
" ","S"," ","s","^","s"," ","S"," ",
" ","S"," ","s","s","s"," ","S"," ",
" "," "," ","c"," "," "," ","S"," ",
"S","S"," ","c"," ","c"," ","S"," ",
" ","S"," ","c","^","c"," ","S"," ",
" ","S"," ","c","c","c"," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S","S","S","S","S","S","S"," ",
" "," "," "," "," "," "," "," "," "
@ -101,13 +101,13 @@ local room_types = {
style = "yrepeat",
layout = {
" "," ","v"," ","v"," ","v"," ","v",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" "," "," "," "," "," "," "," "," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" "," "," "," "," "," "," "," "," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" "," "," "," "," "," "," "," "," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" "," ","^"," ","^"," ","^"," ","^",
},
--traps = true,
@ -116,15 +116,15 @@ local room_types = {
{
style = "yrepeat",
layout = {
"s"," "," "," "," "," "," "," ","s",
" "," ","s",">"," ","<","s"," "," ",
" ","s","s","s"," ","s","s","s"," ",
" "," ","s"," "," "," ","s"," "," ",
"c"," "," "," "," "," "," "," ","c",
" "," ","c",">"," ","<","c"," "," ",
" ","c","s","c"," ","c","s","c"," ",
" "," ","c"," "," "," ","c"," "," ",
" "," "," "," ","<"," "," "," "," ",
" "," ","s"," "," "," ","s"," "," ",
" ","s","s","s"," ","s","s","s"," ",
" "," ","s",">"," ","<","s"," "," ",
"s"," "," "," "," "," "," "," ","s",
" "," ","c"," "," "," ","c"," "," ",
" ","c","s","c"," ","c","s","c"," ",
" "," ","c",">"," ","<","c"," "," ",
"c"," "," "," "," "," "," "," ","c",
},
--traps = true,
},
@ -132,15 +132,15 @@ local room_types = {
{
style = "yrepeat",
layout = {
">","s","s","s","s","s","s","s","s",
"s","s","s"," "," "," ","s","s","s",
"s","s"," "," "," "," "," ","s","s",
"s"," "," "," "," "," "," "," ","s",
" "," "," "," "," "," "," ","<","s",
"s"," "," "," "," "," "," "," ","s",
"s","s"," "," "," "," "," ","s","s",
"s","s","s"," "," "," ","s","s","s",
">","s","s","s","s","s","s","s","s",
">","s","s","c","c","c","s","s","s",
"s","s","c"," "," "," ","c","s","s",
"s","c"," "," "," "," "," ","c","s",
"c"," "," "," "," "," "," "," ","c",
" "," "," "," "," "," "," ","<","c",
"c"," "," "," "," "," "," "," ","c",
"s","c"," "," "," "," "," ","c","s",
"s","s","c"," "," "," ","c","s","s",
">","s","s","c","c","c","s","s","s",
},
--traps = true,
},
@ -179,13 +179,13 @@ local room_types = {
style = "yrepeat",
layout = {
"S","S","S","S","S"," "," "," "," ",
"S","S","S","S","s",">"," "," "," ",
"S","s","S","s","S","s","S"," "," ",
"S","S","S","S","c",">"," "," "," ",
"S","c","S","c","S","c","S"," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
"S","s","S","s","S","s","S"," "," ",
"S","S","S","S","s",">"," "," "," ",
"S","c","S","c","S","c","S"," "," ",
"S","S","S","S","c",">"," "," "," ",
"S","S","S","S","S"," "," "," "," ",
},
},
@ -195,11 +195,11 @@ local room_types = {
layout = {
"S","S","S","S","S","v","S","S","S",
"S","S","S","S","S","S","S","S","S",
"s","S","s","S","s","S","s","S","s",
"c","S","c","S","c","S","c","S","c",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," ","<",
" "," "," "," "," "," "," "," "," ",
"s","S","s","S","s","S","s","S","s",
"c","S","c","S","c","S","c","S","c",
"S","S","S","S","S","S","S","S","S",
"S","S","S","S","S","^","S","S","S",
},
@ -227,7 +227,7 @@ local room_types = {
"S","S","S","S","S","S","S","S","S",
"S","S"," ","v"," ","v"," ","S","S",
"S","S",">"," "," "," ","<","S"," ",
" "," "," "," ","s"," "," ","S"," ",
" "," "," "," ","c"," "," ","S"," ",
"S","S",">"," "," "," ","<","S"," ",
"S","S"," ","^"," ","^"," ","S","S",
"S","S","S","S","S","S","S","S","S",
@ -256,9 +256,9 @@ local room_types = {
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," ","^"," "," "," "," ",
" "," "," ","s","s","s"," "," "," ",
" "," ","<","s","S","s",">"," "," ",
" "," "," ","s","s","s"," "," "," ",
" "," "," ","c","c","c"," "," "," ",
" "," ","<","c","S","c",">"," "," ",
" "," "," ","c","c","c"," "," "," ",
" "," "," "," ","v"," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
@ -271,11 +271,11 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," ","s","s","s"," "," "," ",
" "," ","s","s","v","s","s"," "," ",
" "," ","s",">"," "," "," "," "," ",
" "," ","s","s","^","s","s"," "," ",
" "," "," ","s","s","s"," "," "," ",
" "," "," ","c","c","c"," "," "," ",
" "," ","c","c","v","c","c"," "," ",
" "," ","c",">"," "," "," "," "," ",
" "," ","c","c","^","c","c"," "," ",
" "," "," ","c","c","c"," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
},
@ -285,13 +285,13 @@ local room_types = {
style = "yrepeat",
layout = {
"S","S","S","S","S","S","S"," ","<",
"s","s","s","s","s","S","S"," ","s",
"s"," "," "," "," ","s","S"," ","<",
"s"," "," "," "," ","s","S"," ","s",
" "," "," "," ","<","s","S"," ","<",
"s"," "," "," "," ","s","S"," ","s",
"s"," "," "," "," ","s","S"," ","<",
"s","s","s","s","s","s","S"," ","s",
"c","c","c","c","c","c","S"," ","c",
"c"," "," "," "," "," ","c"," ","<",
"c"," "," "," "," "," ","c"," ","c",
" "," "," "," "," ","<","c"," ","<",
"c"," "," "," "," "," ","c"," ","c",
"c"," "," "," "," "," ","c"," ","<",
"c","c","c","c","c","c","c"," ","c",
"S","S","S","S","S","S","S"," ","<",
},
},
@ -303,7 +303,7 @@ local room_types = {
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," ","^"," ","^"," "," "," ",
" "," "," ","s"," ","s"," "," "," ",
" "," "," ","c"," ","c"," "," "," ",
" "," "," ","v"," ","v"," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
@ -316,11 +316,11 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" "," "," "," ","^"," "," "," "," ",
" "," "," "," ","s"," "," "," "," ",
" "," "," "," ","c"," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" ","<","s"," "," "," ","s",">"," ",
" ","<","c"," "," "," ","c",">"," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," ","s"," "," "," "," ",
" "," "," "," ","c"," "," "," "," ",
" "," "," "," ","v"," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
},
@ -331,11 +331,11 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" "," ","^"," ","^"," ","^"," "," ",
" "," ","s"," ","s"," ","s"," "," ",
" "," ","c"," ","c"," ","c"," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," ","s"," ","s"," ","s"," "," ",
" "," ","c"," ","c"," ","c"," "," ",
" "," ","v"," ","v"," ","v"," "," ",
" "," "," "," "," "," "," "," "," ",
},
@ -347,11 +347,11 @@ local room_types = {
layout = {
" ","S","v","S","v","S","v","S","v",
" ","S"," ","S"," ","S"," ","S"," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" ","S"," ","S"," ","S"," ","S"," ",
" ","S","^","S","^","S","^","S","^",
},
@ -361,13 +361,13 @@ local room_types = {
style = "yrepeat",
layout = {
" "," "," "," "," "," "," "," "," ",
" ","s"," "," "," "," "," ","s"," ",
" ","c"," "," "," "," "," ","c"," ",
" "," "," "," "," "," "," "," "," ",
" "," "," ","s","S","s"," "," "," ",
" "," "," ","c","S","c"," "," "," ",
" "," "," ","S",">"," "," "," "," ",
" "," "," ","s","S","s"," "," "," ",
" "," "," ","c","S","c"," "," "," ",
" "," "," "," "," "," "," "," "," ",
" ","s"," "," "," "," "," ","s"," ",
" ","c"," "," "," "," "," ","c"," ",
" "," "," "," "," "," "," "," "," ",
},
},
@ -406,15 +406,15 @@ local room_types = {
{
style = "yrepeat",
layout = {
"s"," "," "," "," "," "," "," ","s",
"s","s",">"," "," "," ","<","s","s",
" ","s","s"," "," "," ","s","s"," ",
" "," ","s","s"," ","s","s"," "," ",
"c"," "," "," "," "," "," "," ","c",
"c","c",">"," "," "," ","<","c","c",
" ","c","c"," "," "," ","c","c"," ",
" "," ","c","c"," ","c","c"," "," ",
" "," "," "," "," "," "," "," "," ",
" "," ","s","s"," ","s","s"," "," ",
" ","s","s"," "," "," ","s","s"," ",
"s","s",">"," "," "," ","<","s","s",
"s"," "," "," "," "," "," "," ","s",
" "," ","c","c"," ","c","c"," "," ",
" ","c","c"," "," "," ","c","c"," ",
"c","c",">"," "," "," ","<","c","c",
"c"," "," "," "," "," "," "," ","c",
},
},
-- split 2
@ -425,7 +425,7 @@ local room_types = {
"S","S","S"," "," "," "," "," "," ",
"S","S","S"," "," "," "," "," "," ",
"S","S","S"," "," ","^","^","^","^",
" "," "," "," "," ","s","s","s","s",
" "," "," "," "," ","c","c","c","c",
"S","S","S"," "," ","v","v","v","v",
"S","S","S"," "," "," "," "," "," ",
"S","S","S"," "," "," "," "," "," ",
@ -440,7 +440,7 @@ local room_types = {
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
" ","^"," ","^"," ","^"," ","^"," ",
" ","s"," ","s"," ","s"," ","s"," ",
" ","c"," ","c"," ","c"," ","c"," ",
" ","v"," ","v"," ","v"," ","v"," ",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," "," ",
@ -452,13 +452,13 @@ local room_types = {
style = "yrepeat",
layout = {
"S","S"," "," "," "," "," ","S","S",
"S"," "," "," ","s"," "," "," ","S",
"S"," "," "," ","c"," "," "," ","S",
" "," ","<","S","S","S",">"," "," ",
" "," ","S","S","S","S","S"," "," ",
" ","s","S","S","S","S","S","s"," ",
" ","c","S","S","S","S","S","c"," ",
" "," ","S","S","S","S","S"," "," ",
" "," ","<","S","S","S",">"," "," ",
"S"," "," "," ","s"," "," "," ","S",
"S"," "," "," ","c"," "," "," ","S",
"S","S"," "," "," "," "," ","S","S",
},
},
@ -467,13 +467,13 @@ local room_types = {
style = "yrepeat",
layout = {
" "," "," "," "," "," "," "," "," ",
" ","s","^","s"," ","s","^","s"," ",
" ","s","s","s"," ","s","s","s"," ",
" ","s","s","s"," ","s","s","s"," ",
" ","c","^","c"," ","c","^","c"," ",
" ","c","c","c"," ","c","c","c"," ",
" ","c","c","c"," ","c","c","c"," ",
" "," "," "," "," "," "," "," "," ",
" ","s","s","s"," ","s","s","s"," ",
" ","s","s","s"," ","s","s","s"," ",
" ","s","v","s"," ","s","v","s"," ",
" ","c","c","c"," ","c","c","c"," ",
" ","c","c","c"," ","c","c","c"," ",
" ","c","v","c"," ","c","v","c"," ",
" "," "," "," "," "," "," "," "," ",
},
},
@ -483,11 +483,11 @@ local room_types = {
layout = {
"S"," "," "," "," "," "," "," "," ",
"S"," "," ","^"," "," ","^"," "," ",
"S"," "," ","s"," "," ","s"," "," ",
"S"," "," ","c"," "," ","c"," "," ",
"S"," "," "," "," "," "," "," "," ",
" "," "," ","s"," "," ","s"," "," ",
" "," "," ","c"," "," ","c"," "," ",
"S"," "," "," "," "," "," "," "," ",
"S"," "," ","s"," "," ","s"," "," ",
"S"," "," ","c"," "," ","c"," "," ",
"S"," "," ","v"," "," ","v"," "," ",
"S"," "," "," "," "," "," "," "," ",
},
@ -496,15 +496,15 @@ local room_types = {
{
style = "yrepeat",
layout = {
"s"," ","s"," ","s"," ","s"," ","s",
"c"," ","c"," ","c"," ","c"," ","c",
" "," ","v"," ","v"," ","v"," "," ",
"s"," "," "," "," "," "," "," ","s",
"c"," "," "," "," "," "," "," ","c",
" "," "," "," "," "," "," "," "," ",
" "," "," "," "," "," "," "," ","s",
" "," "," "," "," "," "," "," ","c",
" "," "," "," "," "," "," "," "," ",
"s"," "," "," "," "," "," "," ","s",
"c"," "," "," "," "," "," "," ","c",
" "," ","^"," ","^"," ","^"," "," ",
"s"," ","s"," ","s"," ","s"," ","s",
"c"," ","c"," ","c"," ","c"," ","c",
},
traps = true,
},
@ -514,11 +514,11 @@ local room_types = {
layout = {
" "," "," "," "," "," "," "," "," ",
" "," ","^"," ","^"," ","^"," "," ",
" "," ","s"," ","s"," ","s"," "," ",
" "," ","c"," ","c"," ","c"," "," ",
" "," "," "," "," "," "," "," "," ",
" "," ","s"," ","s"," ","s"," "," ",
" "," ","c"," ","c"," ","c"," "," ",
" "," "," "," "," "," "," "," "," ",
" "," ","s"," ","s"," ","s"," "," ",
" "," ","c"," ","c"," ","c"," "," ",
" "," ","v"," ","v"," ","v"," "," ",
" "," "," "," "," "," "," "," "," ",
},
@ -604,13 +604,13 @@ local room_types = {
"s","s","s","s","s","s","s","s","s",
},{
" "," "," "," "," "," "," "," ","<",
" ","c"," ","c"," ","c"," ","c"," ",
" ","C"," ","C"," ","C"," ","C"," ",
" "," "," "," "," "," "," "," "," ",
" ","c"," ","c"," ","c"," ","c"," ",
" ","C"," ","C"," ","C"," ","C"," ",
" "," "," "," "," "," "," "," "," ",
" ","c"," ","c"," ","c"," ","c"," ",
" ","C"," ","C"," ","C"," ","C"," ",
" "," "," "," "," "," "," "," "," ",
" ","c"," ","c"," ","c"," ","c"," ",
" ","C"," ","C"," ","C"," ","C"," ",
" "," "," "," "," "," "," "," ","<",
}},
@ -618,7 +618,7 @@ local room_types = {
"S","S","S","S","S","S","S","S","S",
"s","1","s","1","s","1","s","1","s",
"S","S","S","S","S","S","S","S","S",
"1","s","1","s","1","s","1","s","1",
"s","1","s","1","s","1","s","1","s",
"S","S","S","S","S","S","S","S","S",
},
stype = "desert_sandstone",
@ -679,7 +679,7 @@ local room_types = {
" ","S","S","S"," ","S","S","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" "," "," "," ","s",">"," "," "," ",
" "," "," "," ","c",">"," "," "," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S","S","S"," ","S","S","S"," ",
@ -689,7 +689,7 @@ local room_types = {
" ","S","S","S"," ","S","S","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" "," "," "," ","s"," "," "," "," ",
" "," "," "," ","c"," "," "," "," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S","S","S"," ","S","S","S"," ",
@ -699,7 +699,7 @@ local room_types = {
" ","S","S","S"," ","S","S","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" "," "," "," ","s"," "," "," "," ",
" "," "," "," ","c"," "," "," "," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S"," "," "," "," "," ","S"," ",
" ","S","S","S"," ","S","S","S"," ",
@ -712,7 +712,7 @@ local room_types = {
"s","S","s","s","s","s","s","S","s",
"s","S","s","s","s","s","s","S","s",
"s","S","s","s","s","s","s","S","s",
"s","S","S","S","S","S","S","S","s",
"s","S","S","S","S","S","S","S","c",
"s","s","s","s","s","s","s","s","s",
},{
"S","S","S","S","S","S","S","S","S",
@ -753,6 +753,7 @@ local layout_traps_template = {
local code_sandstone = {
[" "] = "air",
["c"] = "default:sandstone",
["s"] = "default:sandstone",
["h"] = "default:sandstone",
["S"] = "default:sandstonebrick",
@ -765,10 +766,11 @@ local code_sandstone = {
["v"] = "default:chest",
["~"] = "default:lava_source",
["t"] = "tsm_pyramids:trap",
["c"] = "default:large_cactus_seedling",
["C"] = "default:large_cactus_seedling",
["a"] = "default:sand",
}
local code_desert_sandstone = table.copy(code_sandstone)
code_desert_sandstone["c"] = "default:desert_sandstone"
code_desert_sandstone["s"] = "default:desert_sandstone"
code_desert_sandstone["h"] = "default:desert_sandstone"
code_desert_sandstone["1"] = "tsm_pyramids:deco_stone4"
@ -779,6 +781,7 @@ code_desert_sandstone["t"] = "tsm_pyramids:desert_trap"
code_desert_sandstone["a"] = "default:desert_sand"
local code_desert_stone = table.copy(code_sandstone)
code_desert_stone["c"] = "default:desert_stone_block"
code_desert_stone["s"] = "default:desert_stone_block"
code_desert_stone["h"] = "default:desert_stone_block"
code_desert_stone["1"] = "default:desert_stone_block"
@ -795,16 +798,16 @@ local function replace(str, iy, code_table, deco, column_style)
if r > 0 then
str = deco[r]
else
str = "s"
str = "c"
end
elseif column_style == 1 or column_style == 2 then
if iy == 0 and str == "s" then str = deco[1] end
if iy == 3 and str == "s" then str = deco[2] end
if iy == 0 and str == "c" then str = deco[1] end
if iy == 3 and str == "c" then str = deco[2] end
elseif column_style == 3 then
if iy == 0 and str == "s" then str = deco[1] end
if iy == 2 and str == "s" then str = deco[2] end
if iy == 0 and str == "c" then str = deco[1] end
if iy == 2 and str == "c" then str = deco[2] end
elseif column_style == 4 then
if iy == 2 and str == "s" then str = deco[1] end
if iy == 2 and str == "c" then str = deco[1] end
end
return code_table[str]
end