-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.lua
More file actions
263 lines (224 loc) · 10.9 KB
/
data.lua
File metadata and controls
263 lines (224 loc) · 10.9 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
require('init')
local function create_segments_data(wide_entity_filename, wide_shadow_filename, high_entity_filename, high_shadow_filename, warehouse_entity_filename, warehouse_shadow_filename, trashdump_tint, hatch_filename)
return {
wide_segments = {
entity = {
filename = wide_entity_filename,
top_left = { x = 0, y = 0 },
top = { x = 64, y = 0 },
top_right = { x = 128, y = 0 },
widths = { left = 64, middle = 64, right = 64 },
heights = {
top = 80,
middle = 0,
bottom = 0
},
shift = { x = -0.5, y = -4.5 },
scale = 0.5,
center = {
filename = hatch_filename,
width = 66,
height = 32,
frame_count = 7
}
},
shadow = {
filename = wide_shadow_filename,
top_right = { x = 60, y = 0, shift = { x = 30 } },
widths = { left = 0, middle = 0, right = 50 },
heights = {
top = 46,
middle = 0,
bottom = 0
},
shift = { x = -4, y = 10 },
scale = 0.5,
shadow = true
}
},
high_segments = {
entity = {
filename = high_entity_filename,
top_left = { x = 0, y = 0, shift = { y = -8 } },
left = { x = 0, y = 80 },
bottom_left = { x = 0, y = 144 },
widths = { left = 64, middle = 0, right = 0 },
heights = {
top = 80,
middle = 64,
bottom = 64
},
shift = { x = 0, y = -0.5 },
scale = 0.5,
center = {
filename = hatch_filename,
width = 66,
height = 32,
shift = { x = -0.5, y = -4 },
frame_count = 7
}
},
shadow = {
filename = high_shadow_filename,
top_right = { x = 8, y = 0, shift = { y = 6.5 } },
right = { x = 8, y = 18 },
bottom_right = { x = 8, y = 45 },
widths = { left = 0, middle = 0, right = 102 },
heights = {
top = 55,
middle = 64,
bottom = 55
},
shift = { x = 0.75, y = 4 },
scale = 0.5,
shadow = true
}
},
warehouse_segments = {
entity = {
filename = warehouse_entity_filename,
top_left = { x = 0, y = 0, shift = { y = 7 } },
top = { x = 66, y = 0, shift = { y = 7 } },
top_right = { x = 130, y = 0, shift = { y = 7 } },
left = { x = 0, y = 75 },
middle = { x = 66, y = 75 },
right = { x = 130, y = 75 },
bottom_left = { x = 0, y = 139 },
bottom = { x = 66, y = 139 },
bottom_right = { x = 130, y = 139 },
center = {
filename = hatch_filename,
width = 66,
height = 32,
shift = { y = 3 },
frame_count = 7
},
widths = { left = 66, middle = 64, right = 66 },
heights = {
top = 50,
middle = 64,
bottom = 110
},
shift = { x = 0, y = -23 },
scale = 0.5
},
shadow = {
filename = warehouse_shadow_filename,
top_right = { x = 0, y = 0, shift = { x = 32, y = 7 } },
right = { x = 0, y = 49, shift = { x = 32 } },
bottom_right = { x = 0, y = 113, shift = { x = 32 } },
widths = { right = 120 },
heights = {
top = 50,
middle = 64,
bottom = 50
},
shift = { x = -1, y = 6 },
scale = 0.5,
shadow = true
}
},
trashdump_segments = util.merge({
util.copy(MergingChests.steel_chest_segments.trashdump_segments),
{
entity = {
center = {
filename = hatch_filename,
width = 66,
height = 32,
shift = { x= -16, y = 12 },
frame_count = 7,
scale = 0.5,
tint = {1, 1, 1}
},
tint = trashdump_tint
}
}
})
}
end
MergingChestsLogistic.passive_provider_chest_segments = create_segments_data(
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/wide-chest/passive-provider-wide-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/wide-chest/wide-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/high-chest/passive-provider-high-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/high-chest/high-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/warehouse/warehouse.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/warehouse/warehouse-shadow.png",
{228, 81, 59},
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.passive_provider.."/passive-provider-hatch-door.png"
)
MergingChestsLogistic.active_provider_chest_segments = create_segments_data(
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/wide-chest/active-provider-wide-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/wide-chest/wide-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/high-chest/active-provider-high-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/high-chest/high-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/warehouse/warehouse.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/warehouse/warehouse-shadow.png",
{163, 78, 192},
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.active_provider.."/active-provider-hatch-door.png"
)
MergingChestsLogistic.storage_chest_segments = create_segments_data(
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/wide-chest/storage-wide-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/wide-chest/wide-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/high-chest/storage-high-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/high-chest/high-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/warehouse/warehouse.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/warehouse/warehouse-shadow.png",
{201, 164, 64},
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.storage.."/storage-hatch-door.png"
)
MergingChestsLogistic.buffer_chest_segments = create_segments_data(
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/wide-chest/buffer-wide-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/wide-chest/wide-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/high-chest/buffer-high-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/high-chest/high-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/warehouse/warehouse.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/warehouse/warehouse-shadow.png",
{73, 185, 86},
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.buffer.."/buffer-hatch-door.png"
)
MergingChestsLogistic.requester_chest_segments = create_segments_data(
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/wide-chest/requester-wide-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/wide-chest/wide-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/high-chest/requester-high-chest.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/high-chest/high-chest-shadow.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/warehouse/warehouse.png",
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/warehouse/warehouse-shadow.png",
{71, 177, 212},
"__WideChestsLogistic__/graphics/entity/"..MergingChestsLogistic.chest_names.requester.."/requester-hatch-door.png"
)
MergingChests.create_mergeable_chest(
{
chest_name = MergingChestsLogistic.chest_names.passive_provider,
logistic_mode = 'passive-provider'
},
MergingChestsLogistic.passive_provider_chest_segments
)
MergingChests.create_mergeable_chest(
{
chest_name = MergingChestsLogistic.chest_names.active_provider,
logistic_mode = 'active-provider'
},
MergingChestsLogistic.active_provider_chest_segments
)
MergingChests.create_mergeable_chest(
{
chest_name = MergingChestsLogistic.chest_names.storage,
logistic_mode = 'storage'
},
MergingChestsLogistic.storage_chest_segments
)
MergingChests.create_mergeable_chest(
{
chest_name = MergingChestsLogistic.chest_names.buffer,
logistic_mode = 'buffer'
},
MergingChestsLogistic.buffer_chest_segments
)
MergingChests.create_mergeable_chest(
{
chest_name = MergingChestsLogistic.chest_names.requester,
logistic_mode = 'requester'
},
MergingChestsLogistic.requester_chest_segments
)