Skip to content

Commit

Permalink
Merge pull request #108 from pyanodon/Frozen
Browse files Browse the repository at this point in the history
Frozen
  • Loading branch information
notnotmelon authored May 28, 2024
2 parents 3f398cf + 5f194dd commit b3387d0
Show file tree
Hide file tree
Showing 17 changed files with 197 additions and 1 deletion.
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.4.16
Date: 2024-??-??
Changes:
- Changed the name of lead dust to silver-lead dust.
- Added circuit connectivity to big mines (credit: JStMorgan) (https://github.com/pyanodon/pybugreports/issues/415)
---------------------------------------------------------------------------------------------------
Version: 2.4.15
Date: 2024-3-24
Expand Down
2 changes: 1 addition & 1 deletion locale/ru/locale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ grade-1-copper=Медь (1 сорт)
grade-2-copper=Медь (2 сорт)
grade-3-copper=Медь (3 сорт)
grade-4-copper=Медь (4 сорт)
low-grade-rejects=Отходы низкого сорта
low-grade-rejects=Отходы меди низкого качества
low-grade-copper=Низкокачественная медь
high-grade-copper=Высококачественная медь
copper-low-dust=Пыль с низким содержанием меди
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/aluminium-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["aluminium-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["aluminium-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/chromium-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["chromium-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["chromium-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/coal-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ ENTITY {
width = 12,
height = 12,
},
circuit_wire_connection_points = circuit_connector_definitions["coal-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["coal-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/copper-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["copper-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["copper-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/iron-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["iron-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["iron-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/lead-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["lead-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["lead-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/nexelit-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["nexelit-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["nexelit-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/nickel-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["nickel-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["nickel-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/phosphate-mine-02.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ 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,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/quartz-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["quartz-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["quartz-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/tin-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["tin-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["tin-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/titanium-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["titanium-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["titanium-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/uranium-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["uranium-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["uranium-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
3 changes: 3 additions & 0 deletions prototypes/buildings/zinc-mine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ ENTITY {
width = 12,
height = 12
},
circuit_wire_connection_points = circuit_connector_definitions["zinc-mine"].points,
circuit_connector_sprites = circuit_connector_definitions["zinc-mine"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance,
animations = {
layers = {
{
Expand Down
153 changes: 153 additions & 0 deletions prototypes/circuit-connector-definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,115 @@
-- for base-game implementation details, see https://github.com/wube/factorio-data/blob/ed3d12197fbbe63fcd19c0eb23bc826cea44410f/core/lualib/circuit-connector-sprites.lua#L101
-- variation counts from 0 (Python-like).

circuit_connector_definitions["aluminium-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 1, main_offset = util.by_pixel(150, 85), shadow_offset = util.by_pixel(160, 90), show_shadow = false },
{ variation = 1, main_offset = util.by_pixel(150, 85), shadow_offset = util.by_pixel(160, 90), show_shadow = false },
{ variation = 1, main_offset = util.by_pixel(150, 85), shadow_offset = util.by_pixel(160, 90), show_shadow = false },
{ variation = 1, main_offset = util.by_pixel(150, 85), shadow_offset = util.by_pixel(160, 90), show_shadow = false }
}
)

circuit_connector_definitions["chromium-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 26, main_offset = util.by_pixel(125, -130), shadow_offset = util.by_pixel(135, -125), show_shadow = false },
{ variation = 26, main_offset = util.by_pixel(125, -130), shadow_offset = util.by_pixel(135, -125), show_shadow = false },
{ variation = 26, main_offset = util.by_pixel(125, -130), shadow_offset = util.by_pixel(135, -125), show_shadow = false },
{ variation = 26, main_offset = util.by_pixel(125, -130), shadow_offset = util.by_pixel(135, -125), show_shadow = false }
}
)

circuit_connector_definitions["coal-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 2, main_offset = util.by_pixel(115, -50), shadow_offset = util.by_pixel(125, -45), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(115, -50), shadow_offset = util.by_pixel(125, -45), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(115, -50), shadow_offset = util.by_pixel(125, -45), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(115, -50), shadow_offset = util.by_pixel(125, -45), show_shadow = false }
}
)

circuit_connector_definitions["copper-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 2, main_offset = util.by_pixel(-167, 92), shadow_offset = util.by_pixel(-157, 97), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(-167, 92), shadow_offset = util.by_pixel(-157, 97), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(-167, 92), shadow_offset = util.by_pixel(-157, 97), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(-167, 92), shadow_offset = util.by_pixel(-157, 97), show_shadow = false }
}
)

circuit_connector_definitions["iron-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 1, main_offset = util.by_pixel(90, 55), shadow_offset = util.by_pixel(100, 60), show_shadow = false },
{ variation = 1, main_offset = util.by_pixel(90, 55), shadow_offset = util.by_pixel(100, 60), show_shadow = false },
{ variation = 1, main_offset = util.by_pixel(90, 55), shadow_offset = util.by_pixel(100, 60), show_shadow = false },
{ variation = 1, main_offset = util.by_pixel(90, 55), shadow_offset = util.by_pixel(100, 60), show_shadow = false }
}
)

circuit_connector_definitions["lead-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 18, main_offset = util.by_pixel(118, 142), shadow_offset = util.by_pixel(128, 147), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(118, 142), shadow_offset = util.by_pixel(128, 147), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(118, 142), shadow_offset = util.by_pixel(128, 147), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(118, 142), shadow_offset = util.by_pixel(128, 147), show_shadow = false }
}
)

circuit_connector_definitions["nexelit-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 27, main_offset = util.by_pixel(-133, 102), shadow_offset = util.by_pixel(-123, 107), show_shadow = false },
{ variation = 27, main_offset = util.by_pixel(-133, 102), shadow_offset = util.by_pixel(-123, 107), show_shadow = false },
{ variation = 27, main_offset = util.by_pixel(-133, 102), shadow_offset = util.by_pixel(-123, 107), show_shadow = false },
{ variation = 27, main_offset = util.by_pixel(-133, 102), shadow_offset = util.by_pixel(-123, 107), show_shadow = false }
}
)

circuit_connector_definitions["nickel-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 2, main_offset = util.by_pixel(-150, 130), shadow_offset = util.by_pixel(-140, 135), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(-150, 130), shadow_offset = util.by_pixel(-140, 135), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(-150, 130), shadow_offset = util.by_pixel(-140, 135), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(-150, 130), shadow_offset = util.by_pixel(-140, 135), show_shadow = false }
}
)

circuit_connector_definitions["phosphate-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 18, main_offset = util.by_pixel(72, 185), shadow_offset = util.by_pixel(82, 190), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(72, 185), shadow_offset = util.by_pixel(82, 190), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(72, 185), shadow_offset = util.by_pixel(82, 190), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(72, 185), shadow_offset = util.by_pixel(82, 190), show_shadow = false }
}
)

circuit_connector_definitions["quartz-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 10, main_offset = util.by_pixel(90, 65), shadow_offset = util.by_pixel(100, 70), show_shadow = false },
{ variation = 10, main_offset = util.by_pixel(90, 65), shadow_offset = util.by_pixel(100, 70), show_shadow = false },
{ variation = 10, main_offset = util.by_pixel(90, 65), shadow_offset = util.by_pixel(100, 70), show_shadow = false },
{ variation = 10, main_offset = util.by_pixel(90, 65), shadow_offset = util.by_pixel(100, 70), show_shadow = false }
}
)

circuit_connector_definitions["salt-mine"] = circuit_connector_definitions.create
(
Expand All @@ -13,3 +122,47 @@ circuit_connector_definitions["salt-mine"] = circuit_connector_definitions.creat
{ variation = 25, main_offset = util.by_pixel(135, -105), shadow_offset = util.by_pixel(145, -100), show_shadow = false }
}
)

circuit_connector_definitions["tin-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 7, main_offset = util.by_pixel(107, -7), shadow_offset = util.by_pixel(117, -2), show_shadow = false },
{ variation = 7, main_offset = util.by_pixel(107, -7), shadow_offset = util.by_pixel(117, -2), show_shadow = false },
{ variation = 7, main_offset = util.by_pixel(107, -7), shadow_offset = util.by_pixel(117, -2), show_shadow = false },
{ variation = 7, main_offset = util.by_pixel(107, -7), shadow_offset = util.by_pixel(117, -2), show_shadow = false }
}
)

circuit_connector_definitions["titanium-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 2, main_offset = util.by_pixel(188, 170), shadow_offset = util.by_pixel(198, 175), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(188, 170), shadow_offset = util.by_pixel(198, 175), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(188, 170), shadow_offset = util.by_pixel(198, 175), show_shadow = false },
{ variation = 2, main_offset = util.by_pixel(188, 170), shadow_offset = util.by_pixel(198, 175), show_shadow = false }
}
)

circuit_connector_definitions["uranium-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 26, main_offset = util.by_pixel(133, 72), shadow_offset = util.by_pixel(143, 77), show_shadow = false },
{ variation = 26, main_offset = util.by_pixel(133, 72), shadow_offset = util.by_pixel(143, 77), show_shadow = false },
{ variation = 26, main_offset = util.by_pixel(133, 72), shadow_offset = util.by_pixel(143, 77), show_shadow = false },
{ variation = 26, main_offset = util.by_pixel(133, 72), shadow_offset = util.by_pixel(143, 77), show_shadow = false }
}
)

circuit_connector_definitions["zinc-mine"] = circuit_connector_definitions.create
(
universal_connector_template,
{--Directions are up, right, down, left.
{ variation = 18, main_offset = util.by_pixel(137, 137), shadow_offset = util.by_pixel(147, 142), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(137, 137), shadow_offset = util.by_pixel(147, 142), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(137, 137), shadow_offset = util.by_pixel(147, 142), show_shadow = false },
{ variation = 18, main_offset = util.by_pixel(137, 137), shadow_offset = util.by_pixel(147, 142), show_shadow = false }
}
)

0 comments on commit b3387d0

Please sign in to comment.