rocks & wood: add draft crafts
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
local Node, TileSheet = Smc.requireNode(), Smc.requireTileSheet()
|
||||
|
||||
local PrimitiveCraftHandler = Smc.requireCraftSystemPrimitiveCraftHandler()
|
||||
|
||||
---@type Node.NodeDefinition
|
||||
local defaultRockDef = {
|
||||
settings = {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
local Node, TileSheet = Smc.requireNode(), Smc.requireTileSheet()
|
||||
|
||||
local PrimitiveCraftHandler = Smc.requireCraftSystemPrimitiveCraftHandler()
|
||||
|
||||
---@type Node.NodeDefinition
|
||||
local defaultLogDef = {
|
||||
settings = {
|
||||
@@ -195,6 +197,70 @@ local function registerWood(name, x, def)
|
||||
_rarity = def.rarity,
|
||||
},
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_planks', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_planks',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped_1', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped_2', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped_3', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped_11', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped_22', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
|
||||
PrimitiveCraftHandler:registerCraft('wood:'..name..'_log_stripped_33', {
|
||||
recipe = {
|
||||
'wood:'..name..'_log'
|
||||
},
|
||||
output = 'wood:'..name..'_log_stripped',
|
||||
group = 'test'
|
||||
})
|
||||
end
|
||||
|
||||
registerWood('marentine', 0)
|
||||
|
||||
Reference in New Issue
Block a user