soils: add plowed soil
This commit is contained in:
@@ -32,12 +32,39 @@ local function registerSoil(name, x, def, turfs)
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
defaultSoil:new({
|
||||||
|
settings = {
|
||||||
|
name = name..'_plowed',
|
||||||
|
tiles = {
|
||||||
|
soilTileSheet:t(x, 1),
|
||||||
|
soilTexture,
|
||||||
|
},
|
||||||
|
drawtype = 'nodebox',
|
||||||
|
node_box = {
|
||||||
|
type = 'fixed',
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0.5625, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = 'fixed',
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
if turfs ~= nil then
|
if turfs ~= nil then
|
||||||
for turfName, turfX in pairs(turfs) do
|
for turfName, turfX in pairs(turfs) do
|
||||||
defaultSoil:new({
|
defaultSoil:new({
|
||||||
settings = {
|
settings = {
|
||||||
name = turfName,
|
name = turfName,
|
||||||
tiles = {soilTileSheet:t(turfX,1), soilTexture, soilTexture..'^'..soilTileSheet:t(turfX,2)},
|
tiles = {
|
||||||
|
soilTileSheet:t(turfX,2),
|
||||||
|
soilTexture,
|
||||||
|
soilTexture..'^'..soilTileSheet:t(turfX,3)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 35 KiB |
Reference in New Issue
Block a user