3 Commits

Author SHA1 Message Date
c380638166 soils: idk, refactoring? Experements? 2026-08-14 21:31:25 +03:00
ccb89d2990 sands: minor changes 2026-08-14 21:30:05 +03:00
fe8e72cdde rocks: new rocks, remove old rocks 2026-08-14 21:29:09 +03:00
7 changed files with 16 additions and 18 deletions

View File

@@ -4,7 +4,7 @@ local CraftSystem = Smc.requireCraftSystem()
local InventoryCraftHandler = CraftSystem:getPrimitiveCraftHandler('inside_player_inventory')
---@type TileSheet
local rocksTileSheet = TileSheet:new("rocks_sheet.png", 16, 16)
local rocksTileSheet = TileSheet:new('rocks_sheet.png', 16, 16)
---@class RockDef
---@field rarity Item.Rarity?
@@ -24,7 +24,7 @@ local function registerSegmentsCrafts(name, craftGroup)
end
---@param name string
---@param y number
---@param y integer
---@param def RockDef?
---@param staff {block:boolean?,bricks:boolean?,pillar:boolean?}
local function registerRock(name, y, def, staff)
@@ -150,6 +150,7 @@ local function registerRock(name, y, def, staff)
end
end
--[[
-- Sylite group
registerRock('sylite', 0, {}, {block = true, bricks = true, pillar = true})
registerRock('sylite_gray', 1, {}, {block = true, bricks = true, pillar = true})
@@ -165,11 +166,10 @@ registerRock('falmyte_light', 6, {}, {block = true, bricks = true})
registerRock('falmyte_yellow', 7, {}, {block = true, bricks = true})
registerRock('falmyte_red', 8, {}, {block = true, bricks = true})
registerRock('falmyte_dark', 9, {}, {block = true, bricks = true})
--]]
registerRock('basalt', 0, {}, {block = true, bricks = true})
registerRock('granite_red', 1, {}, {block = true, bricks = true})
registerRock('limestone', 2, {}, {block = true, bricks = true})
registerRock('dolomit', 3, {}, {block = true, bricks = true})
-- TODO:
-- iyellite
-- falmyte
-- hapcoryte
-- burcite
-- felhor
-- malachite

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -19,7 +19,7 @@ local function registerSand(type, y)
defaultSandNode:new({
settings = {
name = type..'_sand',
tiles = { sandTileSheet:t(0, y)},
tiles = { sandTileSheet:t(0, y) },
groups = { sand = 1 }
}
})
@@ -27,7 +27,7 @@ local function registerSand(type, y)
defaultSandNode:new({
settings = {
name = type..'_sandstone',
tiles = { sandTileSheet:t(1, y)},
tiles = { sandTileSheet:t(1, y) },
groups = { sandstone = 1 }
}
})
@@ -35,7 +35,7 @@ local function registerSand(type, y)
defaultSandNode:new({
settings = {
name = type..'_sandstone_chipped',
tiles = { sandTileSheet:t(2, y)},
tiles = { sandTileSheet:t(2, y) },
groups = { sandstone = 1 }
}
})

View File

@@ -28,7 +28,7 @@ local function registerSoil(name, x, def, turfs)
defaultSoil:new({
settings = {
name = name,
tiles = {soilTexture}
tiles = { soilTexture }
},
})
@@ -61,9 +61,10 @@ local function registerSoil(name, x, def, turfs)
settings = {
name = turfName,
tiles = {
soilTileSheet:t(turfX,2),
--soilTileSheet:t(turfX,2),
{ name = 'soils_test_top.png', align_style = 'world', scale = 2},
soilTexture,
soilTexture..'^'..soilTileSheet:t(turfX,3)
{ soilTexture..'^'..soilTileSheet:t(turfX,3) }
},
},
})
@@ -289,7 +290,4 @@ soilFactory:registerItems({
})--]]
---@type TileSheet
local tsT = TileSheet:new("soils_turfs_sheet.png", 16, 16)
registerSoil('humus', 0, {maxFertility = 100, rarity = 'uncommon'}, {turf_meadow=0})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB