local gameplay = import_package "vaststars.gameplay"
local prototype = gameplay.register.prototype

prototype "熔炼炉I" {
    model = "/pkg/vaststars.resources/glbs/furnace-1/furnace-1.gltf/mesh.prefab",
    work_status = {work = true, work_start = true, idle_start = true},
    icon = "mem:/pkg/vaststars.resources/glbs/furnace-1/furnace-1.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "assembling", "consumer","fluidboxes"},
    area = "3x3",
    speed = "75%",
    power = "300kW",
    priority = "secondary",
    rotate_on_build = true,
    -- sound = "building/furnace",
    craft_category = {"金属冶炼"},
    fluidboxes = {
        input = {
            {
                capacity = 500,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={1,0,"N"}},
                }
            },
        },
        output = {
            {
                capacity = 500,
                height = 100,
                base_level = 100,
                connections = {
                    {type="output", position={1,2,"S"}},
                }
            },
        },
    },
    maxslot = 8,
}

prototype "熔炼炉II" {
    model = "/pkg/vaststars.resources/glbs/furnace-1/furnace-1.gltf/mesh.prefab",
    work_status = {work = true, work_start = true, idle_start = true},
    icon = "mem:/pkg/vaststars.resources/glbs/furnace-1/furnace-1.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling","fluidboxes"},
    area = "3x3",
    speed = "200%",
    power = "600kW",
    priority = "secondary",
    rotate_on_build = true,
    -- sound = "building/furnace",
    craft_category = {"金属冶炼"},
    fluidboxes = {
        input = {
            {
                capacity = 500,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={1,0,"N"}},
                }
            },
        },
        output = {
            {
                capacity = 500,
                height = 100,
                base_level = 100,
                connections = {
                    {type="output", position={1,2,"S"}},
                }
            },
        },
    },
    maxslot = 8,
}

prototype "熔炼炉III" {
    model = "/pkg/vaststars.resources/glbs/furnace-1/furnace-1.gltf/mesh.prefab",
    work_status = {work = true, work_start = true, idle_start = true},
    icon = "mem:/pkg/vaststars.resources/glbs/furnace-1/furnace-1.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling","fluidboxes"},
    area = "3x3",
    speed = "400%",
    power = "1MW",
    priority = "secondary",
    rotate_on_build = true,
    -- sound = "building/furnace",
    craft_category = {"金属冶炼"},
    fluidboxes = {
        input = {
            {
                capacity = 500,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={1,0,"N"}},
                }
            },
        },
        output = {
            {
                capacity = 500,
                height = 100,
                base_level = 100,
                connections = {
                    {type="output", position={1,2,"S"}},
                }
            },
        },
    },
    maxslot = 8,
}

prototype "粉碎机I" {
    model = "/pkg/vaststars.resources/glbs/crusher-1/crusher-1.gltf/mesh.prefab",
    work_status = {work = true},
    icon = "mem:/pkg/vaststars.resources/glbs/crusher-1/crusher-1.gltf/mesh.prefab config:s,1,3,1.3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling"},
    area = "3x3",
    power = "100kW",
    speed = "100%",
    drain = "3kW",
    drone_height = 22,
    priority = "secondary",
    -- sound = "building/crusher",
    craft_category = {"矿石粉碎"},
    maxslot = 8,
}

prototype "粉碎机II" {
    model = "/pkg/vaststars.resources/glbs/crusher-1/crusher-1.gltf/mesh.prefab",
    work_status = {work = true},
    icon = "mem:/pkg/vaststars.resources/glbs/crusher-1/crusher-1.gltf/mesh.prefab config:s,1,3,1.3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling"},
    area = "3x3",
    power = "200kW",
    drain = "6kW",
    drone_height = 22,
    speed = "200%",
    priority = "secondary",
    -- sound = "building/crusher",
    craft_category = {"矿石粉碎"},
    maxslot = 8,
}

prototype "粉碎机III" {
    model = "/pkg/vaststars.resources/glbs/crusher-1/crusher-1.gltf/mesh.prefab",
    work_status = {work = true},
    icon = "mem:/pkg/vaststars.resources/glbs/crusher-1/crusher-1.gltf/mesh.prefab config:s,1,3,1.3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling"},
    area = "3x3",
    power = "360kW",
    drone_height = 22,
    speed = "400%",
    priority = "secondary",
    -- sound = "building/crusher",
    craft_category = {"矿石粉碎"},
    maxslot = 8,
}

prototype "浮选器I" {
    model = "/pkg/vaststars.resources/glbs/flotation-cell-1/flotation-cell-1.gltf/mesh.prefab",
    work_status = {work = true},
    icon = "mem:/pkg/vaststars.resources/glbs/flotation-cell-1/flotation-cell-1.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling", "fluidboxes"},
    area = "4x4",
    power = "200kW",
    drone_height = 22,
    rotate_on_build = true,
    drain = "6kW",
    speed = "100%",
    priority = "secondary",
    -- sound = "building/hydro-plant",
    craft_category = {"矿石浮选"},
    maxslot = 8,
    fluidboxes = {
        input = {
            {
                capacity = 3000,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={1,0,"N"}},
                }
            },
            {
                capacity = 3000,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={0,1,"W"}},
                }
            },
        },
        output = {
            {
                capacity = 500,
                height = 100,
                base_level = 150,
                connections = {
                    {type="output", position={2,3,"S"}},
                }
            },
            {
                capacity = 500,
                height = 100,
                base_level = 150,
                connections = {
                    {type="output", position={3,2,"E"}},
                }
            },
        },
    },
}

prototype "浮选器II" {
    model = "/pkg/vaststars.resources/glbs/flotation-cell-1/flotation-cell-1.gltf/mesh.prefab",
    work_status = {work = true},
    icon = "mem:/pkg/vaststars.resources/glbs/flotation-cell-1/flotation-cell-1.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling", "fluidboxes"},
    area = "4x4",
    power = "400kW",
    drone_height = 22,
    rotate_on_build = true,
    drain = "12kW",
    speed = "200%",
    priority = "secondary",
    -- sound = "building/hydro-plant",
    craft_category = {"矿石浮选"},
    maxslot = 8,
    fluidboxes = {
        input = {
            {
                capacity = 3000,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={1,0,"N"}},
                }
            },
            {
                capacity = 3000,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={0,1,"W"}},
                }
            },
        },
        output = {
            {
                capacity = 500,
                height = 100,
                base_level = 150,
                connections = {
                    {type="output", position={2,3,"S"}},
                }
            },
            {
                capacity = 500,
                height = 100,
                base_level = 150,
                connections = {
                    {type="output", position={3,2,"E"}},
                }
            },
        },
    },
}

prototype "浮选器III" {
    model = "/pkg/vaststars.resources/glbs/flotation-cell-1/flotation-cell-1.gltf/mesh.prefab",
    work_status = {work = true},
    icon = "mem:/pkg/vaststars.resources/glbs/flotation-cell-1/flotation-cell-1.gltf/mesh.prefab config:s,1,3",
    check_coord = {"exclusive"},
    chest_style = "assembler",
    builder = "normal",
    type = {"building", "consumer", "assembling", "fluidboxes"},
    area = "4x4",
    power = "800kW",
    drone_height = 22,
    rotate_on_build = true,
    drain = "24kW",
    speed = "400%",
    priority = "secondary",
    -- sound = "building/hydro-plant",
    craft_category = {"矿石浮选"},
    maxslot = 8,
    fluidboxes = {
        input = {
            {
                capacity = 3000,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={1,0,"N"}},
                }
            },
            {
                capacity = 3000,
                height = 100,
                base_level = -100,
                connections = {
                    {type="input", position={0,1,"W"}},
                }
            },
        },
        output = {
            {
                capacity = 500,
                height = 100,
                base_level = 150,
                connections = {
                    {type="output", position={2,3,"S"}},
                }
            },
            {
                capacity = 500,
                height = 100,
                base_level = 150,
                connections = {
                    {type="output", position={3,2,"E"}},
                }
            },
        },
    },
}