From 829e32acd4ea3ef639653e2515990eb647daa1b8 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 30 Dec 2025 13:31:30 +0100 Subject: [PATCH] Add circuit connectors for lumber mill and quality assembler --- lignumis/prototypes/content/lumber-mill.lua | 15 +++++++++++---- lignumis/prototypes/content/quality-assembler.lua | 11 +++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/lignumis/prototypes/content/lumber-mill.lua b/lignumis/prototypes/content/lumber-mill.lua index 9ffcafc..d8900b7 100644 --- a/lignumis/prototypes/content/lumber-mill.lua +++ b/lignumis/prototypes/content/lumber-mill.lua @@ -59,6 +59,13 @@ data:extend({ energy_source = energy_source, energy_usage = "1MW", effect_receiver = { base_effect = { productivity = 0.5 } }, + circuit_wire_max_distance = assembling_machine_circuit_wire_max_distance, + circuit_connector = circuit_connector_definitions.create_vector(universal_connector_template, { + { variation = 30, main_offset = util.by_pixel(94, 112), shadow_offset = util.by_pixel(94, 120), show_shadow = true }, + { variation = 30, main_offset = util.by_pixel(94, 112), shadow_offset = util.by_pixel(94, 120), show_shadow = true }, + { variation = 30, main_offset = util.by_pixel(94, 112), shadow_offset = util.by_pixel(94, 120), show_shadow = true }, + { variation = 30, main_offset = util.by_pixel(94, 112), shadow_offset = util.by_pixel(94, 120), show_shadow = true }, + }), surface_conditions = { { property = has_oxygen and "oxygen" or "pressure", @@ -175,10 +182,10 @@ data:extend({ max_sounds_per_type = 2, sound = { filename = "__space-age__/sound/entity/foundry/foundry.ogg", volume = 0.6 }, sound_accents = { - { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-saw-1.ogg", volume = 0.8, audible_distance_modifier = 0.5 }, frame = 26 }, - { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-fall.ogg", volume = 1.2, audible_distance_modifier = 0.5 }, frame = 42 }, - { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-saw-2.ogg", volume = 0.8, audible_distance_modifier = 0.4 }, frame = 53 }, - { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-split.ogg", volume = 0.4, audible_distance_modifier = 0.3 }, frame = 62 }, + { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-saw-1.ogg", volume = 0.8, audible_distance_modifier = 0.5 }, frame = 26 }, + { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-fall.ogg", volume = 1.2, audible_distance_modifier = 0.5 }, frame = 42 }, + { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-saw-2.ogg", volume = 0.8, audible_distance_modifier = 0.4 }, frame = 53 }, + { sound = { filename = Lignumis.sound .. "entity/lumber-mill/lumber-mill-split.ogg", volume = 0.4, audible_distance_modifier = 0.3 }, frame = 62 }, { sound = { variations = sound_variations(Lignumis.sound .. "entity/lumber-mill/lumber-mill-plank", 3, 0.5), audible_distance_modifier = 0.3 }, frame = 14 }, { sound = { variations = sound_variations(Lignumis.sound .. "entity/lumber-mill/lumber-mill-plank", 3, 0.5), audible_distance_modifier = 0.3 }, frame = 34 }, { sound = { variations = sound_variations(Lignumis.sound .. "entity/lumber-mill/lumber-mill-plank", 3, 0.5), audible_distance_modifier = 0.3 }, frame = 54 }, diff --git a/lignumis/prototypes/content/quality-assembler.lua b/lignumis/prototypes/content/quality-assembler.lua index f9e989a..a969b9a 100644 --- a/lignumis/prototypes/content/quality-assembler.lua +++ b/lignumis/prototypes/content/quality-assembler.lua @@ -147,6 +147,17 @@ data:extend({ }, energy_usage = "1MW", heating_energy = "200kW", + circuit_wire_max_distance = assembling_machine_circuit_wire_max_distance, + circuit_connector = circuit_connector_definitions.create_vector + ( + universal_connector_template, + { + { variation = 17, main_offset = util.by_pixel(-42, -9), shadow_offset = util.by_pixel(-33, -7), show_shadow = true }, + { variation = 17, main_offset = util.by_pixel(-42, -9), shadow_offset = util.by_pixel(-33, -7), show_shadow = true }, + { variation = 17, main_offset = util.by_pixel(-42, -9), shadow_offset = util.by_pixel(-33, -7), show_shadow = true }, + { variation = 17, main_offset = util.by_pixel(-42, -9), shadow_offset = util.by_pixel(-33, -7), show_shadow = true } + } + ), perceived_performance = { minimum = 0.25, performance_to_activity_rate = 0.25, maximum = 4 }, graphics_set = { animation = {