Skip to content

Commit

Permalink
Rewrote all code related to LuaEntity.circuit_wire_connection_points
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Nov 10, 2024
1 parent 7d0faf8 commit 170412e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 2 additions & 3 deletions prototypes/buildings/phosphate-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["phosphate-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["phosphate-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
circuit_connector = circuit_connector_definitions["phosphate-mine"],
circuit_wire_max_distance = _G.default_circuit_wire_max_distance,
graphics_set = {
animation = {
layers = {
Expand Down
6 changes: 4 additions & 2 deletions prototypes/buildings/py-roboport-mk03.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ ENTITY {
sound = {filename = "__base__/sound/roboport-door.ogg", volume = 0.4}
}
},
circuit_wire_connection_point = _G.circuit_connector_definitions["roboport"].points,
circuit_connector_sprites = _G.circuit_connector_definitions["roboport"].sprites,
circuit_connector = {
sprites = _G.circuit_connector_definitions["roboport"].sprites,
points = _G.circuit_connector_definitions["roboport"].points
},
circuit_wire_max_distance = _G.default_circuit_wire_max_distance,
default_available_logistic_output_signal = {type = "virtual", name = "signal-X"},
default_total_logistic_output_signal = {type = "virtual", name = "signal-Y"},
Expand Down
5 changes: 2 additions & 3 deletions prototypes/buildings/rare-earth-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["rare-earth-extractor"].points,
circuit_connector_sprites = circuit_connector_definitions["rare-earth-extractor"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
circuit_connector = circuit_connector_definitions["rare-earth-extractor"],
circuit_wire_max_distance = _G.default_circuit_wire_max_distance,
graphics_set = {
animation = {
layers = {
Expand Down

0 comments on commit 170412e

Please sign in to comment.