Code: Select all
data:extend(
{
{
type = "electric-pole",
name = "small-electric-pole-with-lights",
icon = "__LightPole__/graphics/icons/small-electric-pole-with-light.png",
flags = {"placeable-neutral", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "small-electric-pole-with-lights"},
max_health = 35,
corpse = "small-remnants",
collision_box = {{-0.15, -0.15}, {0.15, 0.15}},
selection_box = {{-0.4, -0.4}, {0.4, 0.4}},
drawing_box = {{-0.5, -2.3}, {0.5, 0.5}},
maximum_wire_distance = 7.5,
supply_area_distance = 2.5,
{
type ="lamp",
energy_source =
{
type = "electric",
usage_priority = "secondary-input"
},
energy_usage_per_tick = "1KW",
light = {intensity = 0.9, size = 40},
},
pictures =
{
filename = "__LightPole__/graphics/small-electric-pole/small-electric-pole.png",
priority = "extra-high",
width = 123,
height = 124,
axially_symetric = false,
direction_count = 4,
shift = {1.4, -1.1}
},
connection_points =
{
{
shadow =
{
copper = {2.7, 0},
red = {2.3, 0},
green = {3.1, 0}
},
wire =
{
copper = {0, -2.7},
red = {-0.4,-2.7},
green = {0.4,-2.7}
}
},
{
shadow =
{
copper = {2.7, -0.05},
red = {2.2, -0.35},
green = {3, 0.12}
},
wire =
{
copper = {-0.04, -2.8},
red = {-0.3, -2.9},
green = {0.2, -2.6}
}
},
{
shadow =
{
copper = {2.5, -0.1},
red = {2.55, -0.45},
green = {2.5, 0.25}
},
wire =
{
copper = {-0.2, -2.7},
red = {-0.05, -2.95},
green = {0, -2.4}
}
},
{
shadow =
{
copper = {2.30, -0.1},
red = {2.65, -0.40},
green = {1.75, 0.20}
},
wire =
{
copper = {0, -2.7},
red = {0.3, -2.85},
green = {-0.3, -2.5}
}
}
},
copper_wire_picture =
{
filename = "__base__/graphics/entity/small-electric-pole/copper-wire.png",
priority = "extra-high-no-scale",
width = 224,
height = 46
},
green_wire_picture =
{
filename = "__base__/graphics/entity/small-electric-pole/green-wire.png",
priority = "extra-high-no-scale",
width = 224,
height = 46
},
radius_visualisation_picture =
{
filename = "__base__/graphics/entity/small-electric-pole/electric-pole-radius-visualization.png",
width = 12,
height = 12
},
red_wire_picture =
{
filename = "__base__/graphics/entity/small-electric-pole/red-wire.png",
priority = "extra-high-no-scale",
width = 224,
height = 46
},
wire_shadow_picture =
{
filename = "__base__/graphics/entity/small-electric-pole/wire-shadow.png",
priority = "extra-high-no-scale",
width = 224,
height = 46
}
},
})