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
|
||||
for turfName, turfX in pairs(turfs) do
|
||||
defaultSoil:new({
|
||||
settings = {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user