19 lines
388 B
Lua
19 lines
388 B
Lua
|
function CreateCraftingMachine (type, prototype)
|
||
|
if CreateEntityWithHealth(
|
||
|
type,
|
||
|
MergeTables(
|
||
|
prototype,
|
||
|
{
|
||
|
crafting_categories = {Baseless.RecipeType()},
|
||
|
crafting_speed = 1,
|
||
|
energy_source = Baseless.EnergySource.Void,
|
||
|
energy_usage = "1W",
|
||
|
}
|
||
|
)
|
||
|
) then
|
||
|
Baseless.RecipeType(true)
|
||
|
return true
|
||
|
end
|
||
|
return false
|
||
|
end
|