-
Notifications
You must be signed in to change notification settings - Fork 27
/
glassworks-mk04.lua
172 lines (170 loc) · 5.39 KB
/
glassworks-mk04.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
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
RECIPE {
type = "recipe",
name = "glassworks-mk04",
energy_required = 0.5,
enabled = false,
ingredients = {
{"glassworks-mk04", 1},
{"concrete", 40},
{"nbfe-alloy", 15},
{"low-density-structure", 10},
},
results = {
{"glassworks-mk04", 1}
}
}
ITEM {
type = "item",
name = "glassworks-mk04",
icon = "__pycoalprocessinggraphics__/graphics/icons/glassworks-mk04.png",
icon_size = 64,
flags = {},
subgroup = "py-cp-buildings-mk04",
order = "a",
place_result = "glassworks-mk04",
stack_size = 10
}
ENTITY {
type = "assembling-machine",
name = "glassworks-mk04",
icon = "__pycoalprocessinggraphics__/graphics/icons/glassworks-mk04.png",
icon_size = 64,
flags = {"placeable-neutral", "player-creation"},
minable = {mining_time = 0.5, result = "glassworks-mk04"},
fast_replaceable_group = "glassworks",
max_health = 100,
corpse = "medium-remnants",
dying_explosion = "big-explosion",
collision_box = {{-3.3, -3.3}, {3.3, 3.3}},
selection_box = {{-3.5, -3.5}, {3.5, 3.5}},
match_animation_speed_to_activity = false,
module_specification = {
module_slots = 4
},
allowed_effects = {"speed","pollution"},
crafting_categories = {"glassworks"},
crafting_speed = 4,
energy_source =
{
type = "fluid",
emissions_per_minute = 10,
fluid_box =
{
base_area = 1,
height = 2,
base_level = -1,
pipe_connections =
{
{type = "input", position = {0, 4.0}}
},
pipe_covers = DATA.Pipes.covers(false, true, true, true),
pipe_picture = DATA.Pipes.pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil),
production_type = "input",
},
effectivity = 1,
burns_fluid = true,
scale_fluid_usage = true,
fluid_usage_per_tick = 10,
smoke =
{
{
name = "smoke",
north_position = util.by_pixel(68, -64),
south_position = util.by_pixel(68, -64),
east_position = util.by_pixel(68, -64),
west_position = util.by_pixel(68, -64),
frequency = 8,
starting_vertical_speed = 0.04,
starting_frame_deviation = 50
},
{
name = "smoke",
north_position = util.by_pixel(-12, -96),
south_position = util.by_pixel(-12, -96),
east_position = util.by_pixel(-12, -96),
west_position = util.by_pixel(-12, -96),
frequency = 8,
starting_vertical_speed = 0.04,
starting_frame_deviation = 50
},
}
},
burns_fluid = true,
scale_fluid_usage = true,
energy_usage = "3500kW",
ingredient_count = 10,
animation = {
layers = {
{
filename = "__pycoalprocessinggraphics__/graphics/entity/glassworks/bot.png",
width = 256,
height = 32,
frame_count = 1,
shift = util.by_pixel(16, 96)
},
{
filename = "__pycoalprocessinggraphics__/graphics/entity/glassworks/top.png",
width = 256,
height = 224,
frame_count = 1,
shift = util.by_pixel(16, -32)
},
{
filename = "__pycoalprocessinggraphics__/graphics/entity/glassworks/top-mask.png",
width = 256,
height = 224,
frame_count = 1,
shift = util.by_pixel(16, -32),
tint = {r = 1.0, g = 0.0, b = 1.0, a = 1.0}
},
}
},
working_visualisations = {
{
north_position = util.by_pixel(-16, -32),
west_position = util.by_pixel(-16, -32),
south_position = util.by_pixel(-16, -32),
east_position = util.by_pixel(-16, -32),
animation = {
filename = "__pycoalprocessinggraphics__/graphics/entity/glassworks/a1.png",
frame_count = 100,
line_length = 13,
width = 128,
height = 224,
animation_speed = 0.3
}
},
{
north_position = util.by_pixel(96, -32),
west_position = util.by_pixel(96, -32),
south_position = util.by_pixel(96, -32),
east_position = util.by_pixel(96, -32),
animation = {
filename = "__pycoalprocessinggraphics__/graphics/entity/glassworks/a2.png",
frame_count = 100,
line_length = 13,
width = 96,
height = 224,
animation_speed = 0.3
}
},
},
fluid_boxes = {
--1
{
production_type = "input",
pipe_picture = DATA.Pipes.pictures("assembling-machine-2", nil, {0.0, -0.96}, nil, nil),
pipe_covers = DATA.Pipes.covers(false, true, true, true),
base_area = 10,
base_level = -1,
pipe_connections = {{type = "input", position = {0.0, -4.0}}}
},
off_when_no_fluid_recipe = true
},
vehicle_impact_sound = {filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65},
working_sound = {
sound = {filename = "__pycoalprocessinggraphics__/sounds/glassworks.ogg", volume = 1.0},
idle_sound = {filename = "__pycoalprocessinggraphics__/sounds/glassworks.ogg", volume = 0.50},
apparent_volume = 2.5
}
}