diff --git a/changelog.txt b/changelog.txt index 54c63795..693200de 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version: 2.1.4 Date: ? Changes: - Fix crash with fluid fluid fuel value formatting. (https://github.com/pyanodon/pybugreports/issues/307) + - Added circuit connector for niobium mine (JStMorgan) --------------------------------------------------------------------------------------------------- Version: 2.1.3 Date: 2023-7-25 diff --git a/prototypes/buildings/niobium-mine.lua b/prototypes/buildings/niobium-mine.lua index ac3d5def..b344568f 100644 --- a/prototypes/buildings/niobium-mine.lua +++ b/prototypes/buildings/niobium-mine.lua @@ -127,6 +127,9 @@ ENTITY { width = 12, height = 12 }, + circuit_wire_connection_points = circuit_connector_definitions["niobium-mine"].points, + circuit_connector_sprites = circuit_connector_definitions["niobium-mine"].sprites, + circuit_wire_max_distance = default_circuit_wire_max_distance, graphics_set = { animation = dry_graphics }, diff --git a/prototypes/circuit-connector-definitions.lua b/prototypes/circuit-connector-definitions.lua index 16520f24..cc966e1a 100644 --- a/prototypes/circuit-connector-definitions.lua +++ b/prototypes/circuit-connector-definitions.lua @@ -11,4 +11,15 @@ circuit_connector_definitions["borax-mine-mkxx"] = circuit_connector_definitions { variation = 26, main_offset = util.by_pixel(-40, 85), shadow_offset = util.by_pixel(-46, 97), show_shadow = false }, { variation = 26, main_offset = util.by_pixel(-40, 85), shadow_offset = util.by_pixel(-46, 97), show_shadow = false } } +) + +circuit_connector_definitions["niobium-mine"] = circuit_connector_definitions.create +( + universal_connector_template, + {--Directions are up, right, down, left. + { variation = 18, main_offset = util.by_pixel(-84, -5), shadow_offset = util.by_pixel(-78, 7), show_shadow = false }, + { variation = 18, main_offset = util.by_pixel(-84, -5), shadow_offset = util.by_pixel(-78, 7), show_shadow = false }, + { variation = 18, main_offset = util.by_pixel(-84, -5), shadow_offset = util.by_pixel(-78, 7), show_shadow = false }, + { variation = 18, main_offset = util.by_pixel(-84, -5), shadow_offset = util.by_pixel(-78, 7), show_shadow = false } + } ) \ No newline at end of file