forked from ReikaKalseki/DragonIndustries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutility-entities.lua
65 lines (62 loc) · 1.63 KB
/
utility-entities.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
function createBasicLight(name, params)
return
{
type = "lamp",
name = name,
icon = "__core__/graphics/empty.png",
icon_size = 1,
flags = {"placeable-off-grid", "not-on-map"},
max_health = 100,
destructible = false,
corpse = "small-remnants",
--collision_box = {{-0.2, -0.2}, {0.2, 0.2}},
--selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
selectable_in_game = false,
collision_mask = {},
order = "z",
--vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
energy_source =
{
type = "void",
usage_priority = "lamp"
},
energy_usage_per_tick = "1W",
darkness_for_all_lamps_on = 0.0001,
darkness_for_all_lamps_off = 0,
light = {intensity = params.brightness, size = params.size, color = params.color},
light_when_colored = {intensity = params.brightness, size = params.size, color = params.color},
glow_size = 6,
glow_color_intensity = 0.135,
picture_off =
{
layers =
{
{
filename = "__core__/graphics/empty.png",
priority = "high",
width = 1,
height = 1,
frame_count = 1,
axially_symmetrical = false,
direction_count = 1,
},
}
},
picture_on =
{
filename = "__core__/graphics/empty.png",
priority = "high",
width = 1,
height = 1,
frame_count = 1,
axially_symmetrical = false,
direction_count = 1,
},
signal_to_color_mapping =
{
},
circuit_wire_connection_point = nil,--circuit_connector_definitions["lamp"].points,
circuit_connector_sprites = circuit_connector_definitions["lamp"].sprites,
circuit_wire_max_distance = 0--default_circuit_wire_max_distance
}
end