Add Basic construction robots
| 
						 | 
				
			
			@ -6,7 +6,7 @@ Dive into the world of Lignumis, a moon of Nauvis offering only the most basic t
 | 
			
		|||
 - Move wood and lumber to its own fuel category
 | 
			
		||||
 - Make seeds burnable again
 | 
			
		||||
 - Make rocket silo work (incl. transition to Nauvis)
 | 
			
		||||
 - Add ammo turret
 | 
			
		||||
 - ~~Add ammo turret~~
 | 
			
		||||
 - Add recipe for moist stromatolite remnants for regular furnace
 | 
			
		||||
 - ~~Make enemies work~~
 | 
			
		||||
 - Make mod "Wooden logistics" optional
 | 
			
		||||
| 
						 | 
				
			
			@ -51,3 +51,7 @@ planetfall (https://mods.factorio.com/mod/ThemTharHills)
 | 
			
		|||
CG-Matt (https://mods.factorio.com/mod/simple-wood-liquefaction)
 | 
			
		||||
 | 
			
		||||
 - Wood liquefaction
 | 
			
		||||
 | 
			
		||||
daydev (https://mods.factorio.com/mod/EquipmentPlusPortableEngine)
 | 
			
		||||
 | 
			
		||||
 - Portable engine
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,9 @@
 | 
			
		|||
---------------------------------------------------------------------------------------------------
 | 
			
		||||
Version: 0.0.3
 | 
			
		||||
Date: 03.01.2025
 | 
			
		||||
  Changes:
 | 
			
		||||
    - Add Basic construction robots
 | 
			
		||||
---------------------------------------------------------------------------------------------------
 | 
			
		||||
Version: 0.0.2
 | 
			
		||||
Date: 02.01.2025
 | 
			
		||||
  Changes:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
		 After Width: | Height: | Size: 41 KiB  | 
| 
		 After Width: | Height: | Size: 197 KiB  | 
| 
		 After Width: | Height: | Size: 233 KiB  | 
| 
		 After Width: | Height: | Size: 41 KiB  | 
| 
		 After Width: | Height: | Size: 197 KiB  | 
| 
		 After Width: | Height: | Size: 234 KiB  | 
| 
		 After Width: | Height: | Size: 30 KiB  | 
| 
		 After Width: | Height: | Size: 30 KiB  | 
| 
		 After Width: | Height: | Size: 24 KiB  | 
| 
		 After Width: | Height: | Size: 24 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								lignumis/graphics/icons/basic-construction-robot-copper.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 13 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								lignumis/graphics/icons/basic-construction-robot-gold.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 13 KiB  | 
| 
		 After Width: | Height: | Size: 15 KiB  | 
| 
		 After Width: | Height: | Size: 15 KiB  | 
| 
		 After Width: | Height: | Size: 9.2 KiB  | 
| 
		 After Width: | Height: | Size: 9.2 KiB  | 
| 
		 After Width: | Height: | Size: 119 KiB  | 
| 
		 After Width: | Height: | Size: 119 KiB  | 
| 
						 | 
				
			
			@ -26,6 +26,14 @@ desiccation-furnace=Desiccation furnace
 | 
			
		|||
steam-assembling-machine=Steam assembling machine
 | 
			
		||||
provisional-rocket-silo=Provisional rocket silo
 | 
			
		||||
basic-gun-turret=Basic gun turret
 | 
			
		||||
basic-construction-robot-gold=Basic construction robot (gold)
 | 
			
		||||
basic-construction-robot-copper=Basic construction robot (copper)
 | 
			
		||||
 | 
			
		||||
[equipment-name]
 | 
			
		||||
basic-portable-generator-equipment-gold=Basic portable generator equipment (gold)
 | 
			
		||||
basic-portable-generator-equipment-copper=Basic portable generator equipment (copper)
 | 
			
		||||
basic-personal-roboport-equipment-gold=Basic personal roboport equipment (gold)
 | 
			
		||||
basic-personal-roboport-equipment-copper=Basic personal roboport equipment (copper)
 | 
			
		||||
 | 
			
		||||
[item-name]
 | 
			
		||||
wooden-gear-wheel=Wooden gear wheel
 | 
			
		||||
| 
						 | 
				
			
			@ -64,6 +72,8 @@ steam-science-pack=Steam science pack
 | 
			
		|||
wood-liquefaction=Wood liquefaction
 | 
			
		||||
provisional-rocketry=Provisional rocketry
 | 
			
		||||
basic-gun-turret=Basic gun turret
 | 
			
		||||
basic-construction-robotics-gold=Basic construction robotics (gold)
 | 
			
		||||
basic-construction-robotics-copper=Basic construction robotics (copper)
 | 
			
		||||
 | 
			
		||||
[tile-name]
 | 
			
		||||
wood-floor=Wood floor
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										280
									
								
								lignumis/prototypes/content/basic-construction-robots.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1,280 @@
 | 
			
		|||
local item_sounds = require("__base__.prototypes.item_sounds")
 | 
			
		||||
local item_tints = require("__base__.prototypes.item-tints")
 | 
			
		||||
 | 
			
		||||
local function robot(color)
 | 
			
		||||
    local result = util.copy(data.raw["construction-robot"]["construction-robot"])
 | 
			
		||||
    result.name = "basic-construction-robot-" .. color
 | 
			
		||||
    result.icon = "__lignumis__/graphics/icons/basic-construction-robot-" .. color .. ".png"
 | 
			
		||||
    result.minable.result = "basic-construction-robot-" .. color
 | 
			
		||||
    result.max_health = 50
 | 
			
		||||
    result.speed = 0.04
 | 
			
		||||
    result.max_energy = "2MJ"
 | 
			
		||||
    result.idle.filename = "__lignumis__/graphics/entity/basic-construction-robot/basic-construction-robot-" ..
 | 
			
		||||
        color .. ".png"
 | 
			
		||||
    result.in_motion.filename = "__lignumis__/graphics/entity/basic-construction-robot/basic-construction-robot-" ..
 | 
			
		||||
        color .. ".png"
 | 
			
		||||
    result.working.filename =
 | 
			
		||||
        "__lignumis__/graphics/entity/basic-construction-robot/basic-construction-robot-" .. color .. "-working.png"
 | 
			
		||||
    return result
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function robot_item(color, order)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "item",
 | 
			
		||||
        name = "basic-construction-robot-" .. color,
 | 
			
		||||
        icon = "__lignumis__/graphics/icons/basic-construction-robot-" .. color .. ".png",
 | 
			
		||||
        subgroup = "logistic-network",
 | 
			
		||||
        order = "a[robot]-b" .. order .. "[basic-construction-robot-" .. color .. "]",
 | 
			
		||||
        inventory_move_sound = item_sounds.robotic_inventory_move,
 | 
			
		||||
        pick_sound = item_sounds.robotic_inventory_pickup,
 | 
			
		||||
        drop_sound = item_sounds.robotic_inventory_move,
 | 
			
		||||
        place_result = "basic-construction-robot-" .. color,
 | 
			
		||||
        stack_size = 50,
 | 
			
		||||
        random_tint_color = item_tints.iron_rust
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function robot_recipe(color, ingredients)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "recipe",
 | 
			
		||||
        name = "basic-construction-robot-" .. color,
 | 
			
		||||
        enabled = false,
 | 
			
		||||
        energy_required = 10,
 | 
			
		||||
        ingredients = ingredients,
 | 
			
		||||
        results = { { type = "item", name = "basic-construction-robot-" .. color, amount = 1 } }
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function generator(color)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "generator-equipment",
 | 
			
		||||
        name = "basic-portable-generator-equipment-" .. color,
 | 
			
		||||
        sprite = {
 | 
			
		||||
            filename = "__lignumis__/graphics/equipment/basic-portable-generator-equipment-" ..
 | 
			
		||||
                color .. ".png",
 | 
			
		||||
            width = 128,
 | 
			
		||||
            height = 128,
 | 
			
		||||
            priority = "medium",
 | 
			
		||||
            scale = 0.5
 | 
			
		||||
        },
 | 
			
		||||
        shape = {
 | 
			
		||||
            width = 2,
 | 
			
		||||
            height = 2,
 | 
			
		||||
            type = "full"
 | 
			
		||||
        },
 | 
			
		||||
        burner = {
 | 
			
		||||
            type = "burner",
 | 
			
		||||
            fuel_categories = { "chemical" },
 | 
			
		||||
            emissions_per_minute = { noise = 1, pollution = 1 },
 | 
			
		||||
            fuel_inventory_size = 2,
 | 
			
		||||
            smoke = {
 | 
			
		||||
                {
 | 
			
		||||
                    name = "smoke",
 | 
			
		||||
                    deviation = { 0.1, 0.1 },
 | 
			
		||||
                    frequency = 5,
 | 
			
		||||
                    position = { 0, 0 },
 | 
			
		||||
                    starting_vertical_speed = 0.08,
 | 
			
		||||
                    starting_frame_deviation = 60
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        energy_source = {
 | 
			
		||||
            type = "electric",
 | 
			
		||||
            usage_priority = "secondary-output",
 | 
			
		||||
            output_flow_limit = "200kW"
 | 
			
		||||
        },
 | 
			
		||||
        power = "200kW",
 | 
			
		||||
        categories = { "armor" }
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function generator_item(color, order)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "item",
 | 
			
		||||
        name = "basic-portable-generator-equipment-" .. color,
 | 
			
		||||
        icon = "__lignumis__/graphics/icons/basic-portable-generator-equipment-" .. color .. ".png",
 | 
			
		||||
        subgroup = "equipment",
 | 
			
		||||
        order = "a[energy-source]-a" .. order .. "[basic-portable-generator-equipment-" .. color .. "]",
 | 
			
		||||
        inventory_move_sound = item_sounds.robotic_inventory_move,
 | 
			
		||||
        pick_sound = item_sounds.robotic_inventory_pickup,
 | 
			
		||||
        drop_sound = item_sounds.robotic_inventory_move,
 | 
			
		||||
        place_as_equipment_result = "basic-portable-generator-equipment-" .. color,
 | 
			
		||||
        stack_size = 10
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function generator_recipe(color, ingredients)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "recipe",
 | 
			
		||||
        name = "basic-portable-generator-equipment-" .. color,
 | 
			
		||||
        enabled = false,
 | 
			
		||||
        energy_required = 10,
 | 
			
		||||
        ingredients = ingredients,
 | 
			
		||||
        results = { { type = "item", name = "basic-portable-generator-equipment-" .. color, amount = 1 } }
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function roboport(color)
 | 
			
		||||
    local result = util.copy(data.raw["roboport-equipment"]["personal-roboport-equipment"])
 | 
			
		||||
    result.name = "basic-personal-roboport-equipment-" .. color
 | 
			
		||||
    result.take_result = "basic-personal-roboport-equipment-" .. color
 | 
			
		||||
    result.sprite.filename = "__lignumis__/graphics/equipment/basic-personal-roboport-equipment-" .. color .. ".png"
 | 
			
		||||
    result.energy_source.input_flow_limit = "400kW"
 | 
			
		||||
    result.energy_source.buffer_capacity = "10MJ"
 | 
			
		||||
    result.charging_energy = "500kW"
 | 
			
		||||
    return result
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function roboport_item(color, order)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "item",
 | 
			
		||||
        name = "basic-personal-roboport-equipment-" .. color,
 | 
			
		||||
        icon = "__lignumis__/graphics/icons/basic-personal-roboport-equipment-" .. color .. ".png",
 | 
			
		||||
        place_as_equipment_result = "basic-personal-roboport-equipment-" .. color,
 | 
			
		||||
        subgroup = "utility-equipment",
 | 
			
		||||
        order = "e[robotics]-a" .. order .. "[basic-personal-roboport-equipment-" .. color .. "]",
 | 
			
		||||
        inventory_move_sound = item_sounds.roboport_inventory_move,
 | 
			
		||||
        pick_sound = item_sounds.roboport_inventory_pickup,
 | 
			
		||||
        drop_sound = item_sounds.roboport_inventory_move,
 | 
			
		||||
        stack_size = 10
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function roboport_recipe(color, ingredients)
 | 
			
		||||
    return {
 | 
			
		||||
        type = "recipe",
 | 
			
		||||
        name = "basic-personal-roboport-equipment-" .. color,
 | 
			
		||||
        enabled = false,
 | 
			
		||||
        energy_required = 10,
 | 
			
		||||
        ingredients = ingredients,
 | 
			
		||||
        results = { { type = "item", name = "basic-personal-roboport-equipment-" .. color, amount = 1 } }
 | 
			
		||||
    }
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local gold_robot_technology = {
 | 
			
		||||
    type = "technology",
 | 
			
		||||
    name = "basic-construction-robotics-gold",
 | 
			
		||||
    icon = "__lignumis__/graphics/technology/basic-construction-robotics-gold.png",
 | 
			
		||||
    icon_size = 256,
 | 
			
		||||
    effects = {
 | 
			
		||||
        {
 | 
			
		||||
            type = "unlock-recipe",
 | 
			
		||||
            recipe = "basic-construction-robot-gold"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            type = "unlock-recipe",
 | 
			
		||||
            recipe = "basic-portable-generator-equipment-gold"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            type = "unlock-recipe",
 | 
			
		||||
            recipe = "basic-personal-roboport-equipment-gold"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            type = "create-ghost-on-entity-death",
 | 
			
		||||
            modifier = true
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    prerequisites = { "steam-science-pack" },
 | 
			
		||||
    unit = {
 | 
			
		||||
        count = 200,
 | 
			
		||||
        ingredients = {
 | 
			
		||||
            { "wood-science-pack",  1 },
 | 
			
		||||
            { "steam-science-pack", 1 }
 | 
			
		||||
        },
 | 
			
		||||
        time = 15
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local copper_robot_technology = {
 | 
			
		||||
    type = "technology",
 | 
			
		||||
    name = "basic-construction-robotics-copper",
 | 
			
		||||
    icon = "__lignumis__/graphics/technology/basic-construction-robotics-copper.png",
 | 
			
		||||
    icon_size = 256,
 | 
			
		||||
    effects = {
 | 
			
		||||
        {
 | 
			
		||||
            type = "unlock-recipe",
 | 
			
		||||
            recipe = "basic-construction-robot-copper"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            type = "unlock-recipe",
 | 
			
		||||
            recipe = "basic-portable-generator-equipment-copper"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            type = "unlock-recipe",
 | 
			
		||||
            recipe = "basic-personal-roboport-equipment-copper"
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    prerequisites = { "basic-construction-robotics-gold", "automation-science-pack" },
 | 
			
		||||
    unit = {
 | 
			
		||||
        count = 200,
 | 
			
		||||
        ingredients = {
 | 
			
		||||
            { "automation-science-pack", 1 }
 | 
			
		||||
        },
 | 
			
		||||
        time = 15
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
data:extend({
 | 
			
		||||
    -- Gold
 | 
			
		||||
    robot("gold"),
 | 
			
		||||
    robot_item("gold", 0),
 | 
			
		||||
    robot_recipe("gold", {
 | 
			
		||||
        { type = "item", name = "gold-plate",        amount = 2 },
 | 
			
		||||
        { type = "item", name = "wooden-gear-wheel", amount = 5 },
 | 
			
		||||
        { type = "item", name = "gold-cable",        amount = 10 }
 | 
			
		||||
    }),
 | 
			
		||||
    generator("gold"),
 | 
			
		||||
    generator_item("gold", 0),
 | 
			
		||||
    generator_recipe("gold", {
 | 
			
		||||
        { type = "item", name = "gold-plate",        amount = 10 },
 | 
			
		||||
        { type = "item", name = "wooden-gear-wheel", amount = 10 }
 | 
			
		||||
    }),
 | 
			
		||||
    roboport("gold"),
 | 
			
		||||
    roboport_item("gold", 0),
 | 
			
		||||
    roboport_recipe("gold", {
 | 
			
		||||
        { type = "item", name = "gold-plate",        amount = 10 },
 | 
			
		||||
        { type = "item", name = "wooden-gear-wheel", amount = 10 }
 | 
			
		||||
    }),
 | 
			
		||||
 | 
			
		||||
    -- Copper
 | 
			
		||||
    robot("copper"),
 | 
			
		||||
    robot_item("copper", 1),
 | 
			
		||||
    robot_recipe("copper", {
 | 
			
		||||
        { type = "item", name = "iron-plate",         amount = 2 },
 | 
			
		||||
        { type = "item", name = "iron-gear-wheel",    amount = 5 },
 | 
			
		||||
        { type = "item", name = "electronic-circuit", amount = 10 }
 | 
			
		||||
    }),
 | 
			
		||||
    generator("copper"),
 | 
			
		||||
    generator_item("copper", 1),
 | 
			
		||||
    generator_recipe("copper", {
 | 
			
		||||
        { type = "item", name = "copper-plate",    amount = 10 },
 | 
			
		||||
        { type = "item", name = "iron-gear-wheel", amount = 10 }
 | 
			
		||||
    }),
 | 
			
		||||
    roboport("copper"),
 | 
			
		||||
    roboport_item("copper", 1),
 | 
			
		||||
    roboport_recipe("copper", {
 | 
			
		||||
        { type = "item", name = "copper-plate",       amount = 10 },
 | 
			
		||||
        { type = "item", name = "iron-gear-wheel",    amount = 10 },
 | 
			
		||||
        { type = "item", name = "electronic-circuit", amount = 20 }
 | 
			
		||||
    }),
 | 
			
		||||
 | 
			
		||||
    -- Technology
 | 
			
		||||
    gold_robot_technology,
 | 
			
		||||
    copper_robot_technology,
 | 
			
		||||
 | 
			
		||||
    -- Equipment grids
 | 
			
		||||
    {
 | 
			
		||||
        type = "equipment-grid",
 | 
			
		||||
        name = "very-small-equipment-grid",
 | 
			
		||||
        width = 4,
 | 
			
		||||
        height = 4,
 | 
			
		||||
        equipment_categories = { "armor" }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "equipment-grid",
 | 
			
		||||
        name = "tiny-equipment-grid",
 | 
			
		||||
        width = 4,
 | 
			
		||||
        height = 2,
 | 
			
		||||
        equipment_categories = { "armor" }
 | 
			
		||||
    }
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			@ -16,5 +16,6 @@ require("steam-science")
 | 
			
		|||
require("wood-liquefaction")
 | 
			
		||||
require("wooden-rocket-silo")
 | 
			
		||||
require("basic-gun-turret")
 | 
			
		||||
require("basic-construction-robots")
 | 
			
		||||
 | 
			
		||||
require("noise")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,5 +37,24 @@ data:extend({
 | 
			
		|||
            secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 },
 | 
			
		||||
        },
 | 
			
		||||
        allow_productivity = true
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
        name = "steam-science-pack",
 | 
			
		||||
        icon = "__lignumis__/graphics/technology/steam-science-pack.png",
 | 
			
		||||
        icon_size = 256,
 | 
			
		||||
        essential = true,
 | 
			
		||||
        effects = {
 | 
			
		||||
            {
 | 
			
		||||
                type = "unlock-recipe",
 | 
			
		||||
                recipe = "steam-science-pack"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        prerequisites = { "steam-automation" },
 | 
			
		||||
        unit = {
 | 
			
		||||
            count = 20,
 | 
			
		||||
            ingredients = { { "wood-science-pack", 1 } },
 | 
			
		||||
            time = 15
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			@ -36,5 +36,29 @@ data:extend({
 | 
			
		|||
            secondary = { r = 0.65, g = 0.27, b = 0.18, a = 1.000 },
 | 
			
		||||
        },
 | 
			
		||||
        allow_productivity = true
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
        name = "wood-science-pack",
 | 
			
		||||
        icon = "__lignumis__/graphics/technology/wood-science-pack.png",
 | 
			
		||||
        icon_size = 256,
 | 
			
		||||
        essential = true,
 | 
			
		||||
        effects =
 | 
			
		||||
        {
 | 
			
		||||
            {
 | 
			
		||||
                type = "unlock-recipe",
 | 
			
		||||
                recipe = "wood-lab"
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                type = "unlock-recipe",
 | 
			
		||||
                recipe = "wood-science-pack"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        research_trigger =
 | 
			
		||||
        {
 | 
			
		||||
            type = "craft-item",
 | 
			
		||||
            item = "lumber",
 | 
			
		||||
            count = 10
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
})
 | 
			
		||||
| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
require("vanilla")
 | 
			
		||||
require("Wood-Walls")
 | 
			
		||||
require("wood-logistics")
 | 
			
		||||
require("wood-military")
 | 
			
		||||
| 
						 | 
				
			
			@ -118,3 +118,49 @@ landfill_technology.unit = {
 | 
			
		|||
    ingredients = { { "wood-science-pack", 1 } },
 | 
			
		||||
    time = 15
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local robots_speed_technology_1 = data.raw.technology["worker-robots-speed-1"]
 | 
			
		||||
robots_speed_technology_1.prerequisites = { "provisional-rocketry", "basic-construction-robotics-gold" }
 | 
			
		||||
robots_speed_technology_1.unit = {
 | 
			
		||||
    count = 100,
 | 
			
		||||
    ingredients = { { "wood-science-pack", 1 }, { "steam-science-pack", 1 } },
 | 
			
		||||
    time = 15
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local robots_speed_technology_2 = data.raw.technology["worker-robots-speed-2"]
 | 
			
		||||
robots_speed_technology_2.prerequisites = {
 | 
			
		||||
    "worker-robots-speed-1",
 | 
			
		||||
    "logistic-science-pack"
 | 
			
		||||
}
 | 
			
		||||
robots_speed_technology_2.unit = {
 | 
			
		||||
    count = 100,
 | 
			
		||||
    ingredients = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 } },
 | 
			
		||||
    time = 30
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local robots_speed_technology_3 = data.raw.technology["worker-robots-speed-3"]
 | 
			
		||||
robots_speed_technology_3.prerequisites = { "worker-robots-speed-2", "chemical-science-pack" }
 | 
			
		||||
robots_speed_technology_3.unit = {
 | 
			
		||||
    count = 150,
 | 
			
		||||
    ingredients = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 }, { "chemical-science-pack", 1 } },
 | 
			
		||||
    time = 30
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
local robots_speed_technology_4 = data.raw.technology["worker-robots-speed-4"]
 | 
			
		||||
robots_speed_technology_4.prerequisites = { "worker-robots-speed-3", "utility-science-pack" }
 | 
			
		||||
robots_speed_technology_4.unit.ingredients = {
 | 
			
		||||
    { "automation-science-pack", 1 },
 | 
			
		||||
    { "logistic-science-pack",   1 },
 | 
			
		||||
    { "chemical-science-pack",   1 },
 | 
			
		||||
    { "utility-science-pack",    1 }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Equipment
 | 
			
		||||
 | 
			
		||||
data.raw.armor["light-armor"].equipment_grid = "tiny-equipment-grid"
 | 
			
		||||
data.raw.armor["heavy-armor"].equipment_grid = "very-small-equipment-grid"
 | 
			
		||||
data.raw["equipment-grid"]["small-equipment-grid"].width = 6
 | 
			
		||||
data.raw["equipment-grid"]["small-equipment-grid"].height = 6
 | 
			
		||||
data.raw["equipment-grid"]["medium-equipment-grid"].width = 8
 | 
			
		||||
data.raw["equipment-grid"]["medium-equipment-grid"].height = 8
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								lignumis/prototypes/integrations/wood-military.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
data.raw.armor["wood-armor"].equipment_grid = "tiny-equipment-grid"
 | 
			
		||||
| 
						 | 
				
			
			@ -1,28 +1,4 @@
 | 
			
		|||
data:extend({
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
        name = "wood-science-pack",
 | 
			
		||||
        icon = "__lignumis__/graphics/technology/wood-science-pack.png",
 | 
			
		||||
        icon_size = 256,
 | 
			
		||||
        essential = true,
 | 
			
		||||
        effects =
 | 
			
		||||
        {
 | 
			
		||||
            {
 | 
			
		||||
                type = "unlock-recipe",
 | 
			
		||||
                recipe = "wood-lab"
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                type = "unlock-recipe",
 | 
			
		||||
                recipe = "wood-science-pack"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        research_trigger =
 | 
			
		||||
        {
 | 
			
		||||
            type = "craft-item",
 | 
			
		||||
            item = "lumber",
 | 
			
		||||
            count = 10
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
        name = "planet-discovery-nauvis",
 | 
			
		||||
| 
						 | 
				
			
			@ -73,11 +49,6 @@ data:extend({
 | 
			
		|||
            },
 | 
			
		||||
            time = 15
 | 
			
		||||
        }
 | 
			
		||||
        --research_trigger = {
 | 
			
		||||
        --    type = "craft-item",
 | 
			
		||||
        --    item = "iron-ore",
 | 
			
		||||
        --    count = 10
 | 
			
		||||
        --}
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
| 
						 | 
				
			
			@ -104,11 +75,6 @@ data:extend({
 | 
			
		|||
            },
 | 
			
		||||
            time = 15
 | 
			
		||||
        }
 | 
			
		||||
        --research_trigger = {
 | 
			
		||||
        --    type = "craft-item",
 | 
			
		||||
        --    item = "copper-ore",
 | 
			
		||||
        --    count = 10
 | 
			
		||||
        --}
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
| 
						 | 
				
			
			@ -144,25 +110,6 @@ data:extend({
 | 
			
		|||
            time = 15
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
        name = "steam-science-pack",
 | 
			
		||||
        icon = "__lignumis__/graphics/technology/steam-science-pack.png",
 | 
			
		||||
        icon_size = 256,
 | 
			
		||||
        essential = true,
 | 
			
		||||
        effects = {
 | 
			
		||||
            {
 | 
			
		||||
                type = "unlock-recipe",
 | 
			
		||||
                recipe = "steam-science-pack"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        prerequisites = { "steam-automation" },
 | 
			
		||||
        unit = {
 | 
			
		||||
            count = 20,
 | 
			
		||||
            ingredients = { { "wood-science-pack", 1 } },
 | 
			
		||||
            time = 15
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
        type = "technology",
 | 
			
		||||
        name = "provisional-rocketry",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||