/
entity.lua
53 lines (51 loc) · 1.27 KB
/
entity.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
data:extend({
{
type = "radar",
name = "advanced-radar",
icon = "__base__/graphics/icons/radar.png",
flags = {"placeable-player", "player-creation"},
minable = {hardness = 0.2, mining_time = 0.5, result = "advanced-radar"},
max_health = 150,
corpse = "big-remnants",
resistances =
{
{
type = "fire",
percent = 70
}
},
collision_box = {{-1.4, -1.4}, {1.4, 1.4}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
energy_per_sector = "10MJ",
max_distance_of_sector_revealed = 28,
max_distance_of_nearby_sector_revealed = 6,
energy_per_nearby_scan = "250kJ",
energy_source =
{
type = "electric",
usage_priority = "secondary-input"
},
energy_usage = "1200kW",
pictures =
{
filename = "__base__/graphics/entity/radar/radar.png",
priority = "low",
width = 153,
height = 131,
apply_projection = false,
direction_count = 64,
line_length = 8,
shift = {0.875, -0.34375}
},
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
working_sound =
{
sound = {
{
filename = "__base__/sound/radar.ogg"
}
},
apparent_volume = 2,
}
}
})