diff --git a/changelog.txt b/changelog.txt index fb06063..d3c2b9f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.1.17 +Date: 2024-03-15 + Features: + - Drilling rigs can now be connected to circuit network, like pumpjacks. +--------------------------------------------------------------------------------------------------- Version: 0.1.16 Date: 2024-02-10 Fixes: diff --git a/info.json b/info.json index cff8dc4..d63f5c4 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzgas", - "version": "0.1.16", + "version": "0.1.17", "factorio_version": "1.1", "title": "Natural Gas", "author": "Brevven", diff --git a/prototypes/gas-extractor.lua b/prototypes/gas-extractor.lua index 106b8cb..89701bf 100644 --- a/prototypes/gas-extractor.lua +++ b/prototypes/gas-extractor.lua @@ -19,6 +19,18 @@ elseif data.raw.item["silica"] and data.raw.technology["silica-processing"] then ge_prereq = {"silica-processing"} end +drilling_rig_circuit_connector_definitions = circuit_connector_definitions.create +( + universal_connector_template, + { + { variation = 26, main_offset = futil.by_pixel(32, -3), shadow_offset = futil.by_pixel(32, -3), show_shadow = true }, + { variation = 26, main_offset = futil.by_pixel(32, -3), shadow_offset = futil.by_pixel(32, -3), show_shadow = true }, + { variation = 26, main_offset = futil.by_pixel(32, -3), shadow_offset = futil.by_pixel(32, -3), show_shadow = true }, + { variation = 26, main_offset = futil.by_pixel(32, -3), shadow_offset = futil.by_pixel(32, -3), show_shadow = true } + } +) + + data:extend({ { type = "item", @@ -183,8 +195,8 @@ data:extend({ }, fast_replaceable_group = "pumpjack", - -- circuit_wire_connection_points = circuit_connector_definitions["pumpjack"].points, - -- circuit_connector_sprites = circuit_connector_definitions["pumpjack"].sprites, - -- circuit_wire_max_distance = default_circuit_wire_max_distance + circuit_wire_connection_points = drilling_rig_circuit_connector_definitions.points, + circuit_connector_sprites = drilling_rig_circuit_connector_definitions.sprites, + circuit_wire_max_distance = default_circuit_wire_max_distance } })