Skip to content

Commit

Permalink
Added niobium mine connectors (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
JStMorgan authored Aug 29, 2023
1 parent 0ae1a1c commit 4f6fd77
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/niobium-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
11 changes: 11 additions & 0 deletions prototypes/circuit-connector-definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
)

0 comments on commit 4f6fd77

Please sign in to comment.