-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathother-entities.lua
More file actions
110 lines (107 loc) · 3.18 KB
/
other-entities.lua
File metadata and controls
110 lines (107 loc) · 3.18 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
local leadutil = require("__bzlead__.data-util");
require("data-util")
if leadutil.me.more_entities() and data.raw.item["lead-plate"] then
data:extend({
{
type = "item",
name = "lead-chest",
icon = "__bzlead__/graphics/icons/lead-chest.png",
icon_size = 64, icon_mipmaps = 3,
subgroup = "storage",
order = "a[items]-az[lead-chest]",
place_result = "lead-chest",
stack_size = 50
},
{
type = "recipe",
name = "lead-chest",
enabled = true,
ingredients = {leadutil.item("lead-plate", 8)},
results = {leadutil.item("lead-chest")},
},
{
type = "container",
name = "lead-chest",
icon = "__bzlead__/graphics/icons/lead-chest.png",
icon_size = 64, icon_mipmaps = 3,
flags = {"placeable-neutral", "player-creation"},
minable = {mining_time = 0.2, result = "lead-chest"},
max_health = 150,
corpse = "small-remnants",
open_sound = { filename = "__base__/sound/metallic-chest-open.ogg", volume=0.65 },
close_sound = { filename = "__base__/sound/metallic-chest-close.ogg", volume = 0.7 },
surface_conditions = mods["space-age"] and {
{
property = "gravity",
min = 0.1
}
} or nil,
resistances =
{
{
type = "fire",
percent = 80
},
},
collision_box = {{-0.35, -0.35}, {0.35, 0.35}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
fast_replaceable_group = "container",
inventory_size = 24,
vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
picture =
{
layers =
{
{
filename = "__bzlead__/graphics/entity/hr-lead-chest.png",
priority = "extra-high",
width = 66,
height = 76,
shift = util.by_pixel(-0.5, -0.5),
scale = 0.5
},
{
filename = "__bzlead__/graphics/entity/hr-lead-chest-shadow.png",
priority = "extra-high",
width = 110,
height = 50,
shift = util.by_pixel(10.5, 6),
draw_as_shadow = true,
scale = 0.5
}
}
},
circuit_wire_connection_point = circuit_connector_definitions["chest"].points,
circuit_connector_sprites = circuit_connector_definitions["chest"].sprites,
circuit_wire_max_distance = default_circuit_wire_max_distance
},
{
type = "corpse",
name = "lead-chest-remnants",
icon = "__bzlead__/graphics/icons/lead-chest.png",
icon_size = 64, icon_mipmaps = 3,
flags = {"placeable-neutral", "building-direction-8-way", "not-on-map"},
subgroup = "storage-remnants",
order = "a-b-a",
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
tile_width = 1,
tile_height = 1,
selectable_in_game = false,
time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants",
remove_on_tile_placement = false,
hidden_in_factoriopedia = true,
animation =
{
filename = "__bzlead__/graphics/entity/hr-lead-chest-remnants.png",
line_length = 1,
width = 126,
height = 78,
frame_count = 1,
direction_count = 1,
shift = util.by_pixel(12, 0),
scale = 0.5
}
},
})
end