1
- require " util"
1
+ require (" util" )
2
+ require (" circuit-connector-sprites" )
2
3
3
4
data :extend ({
4
5
{
5
- type = ' reactor' ,
6
- name = ' MOX-reactor' ,
7
- icon = ' __PlutoniumEnergy__/graphics/icons/MOX-reactor.png' ,
8
- icon_size = 64 ,
9
- icon_mipmaps = 4 ,
10
- flags = { ' placeable-neutral' , ' player-creation' },
11
- minable = { mining_time = 0.5 , result = ' MOX-reactor' },
12
- max_health = 400 ,
13
- corpse = ' MOX-reactor-remnants' ,
14
- dying_explosion = ' nuclear-reactor-explosion' ,
15
- consumption = ' 20MW' ,
16
- neighbour_bonus = 1.5 ,
17
- energy_source = {
6
+ type = ' reactor' ,
7
+ name = ' MOX-reactor' ,
8
+ icon = ' __PlutoniumEnergy__/graphics/icons/MOX-reactor.png' ,
9
+ flags = { ' placeable-neutral' , ' player-creation' },
10
+ minable = { mining_time = 0.5 , result = ' MOX-reactor' },
11
+ max_health = 400 ,
12
+ corpse = ' MOX-reactor-remnants' ,
13
+ dying_explosion = ' nuclear-reactor-explosion' ,
14
+ consumption = ' 20MW' ,
15
+ neighbour_bonus = 1.5 ,
16
+ energy_source = {
18
17
type = ' burner' ,
19
18
fuel_categories = { ' MOX' },
20
19
effectivity = 1 ,
@@ -26,25 +25,25 @@ data:extend({
26
25
maximum_intensity = 0.95
27
26
}
28
27
},
29
- collision_box = { { - 1.2 , - 1.2 }, { 1.2 , 1.2 } },
30
- selection_box = { { - 1.5 , - 1.5 }, { 1.5 , 1.5 } },
31
- damaged_trigger_effect = data .raw [' reactor' ][' nuclear-reactor' ].damaged_trigger_effect ,
32
- lower_layer_picture = {
28
+ collision_box = { { - 1.2 , - 1.2 }, { 1.2 , 1.2 } },
29
+ selection_box = { { - 1.5 , - 1.5 }, { 1.5 , 1.5 } },
30
+ damaged_trigger_effect = data .raw [' reactor' ][' nuclear-reactor' ].damaged_trigger_effect ,
31
+ lower_layer_picture = {
33
32
filename = ' __PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-pipes.png' ,
34
33
width = 192 ,
35
34
height = 188 ,
36
35
scale = 0.5 ,
37
36
shift = util .by_pixel (- 1 , - 5 )
38
37
},
39
- heat_lower_layer_picture = apply_heat_pipe_glow {
38
+ heat_lower_layer_picture = apply_heat_pipe_glow {
40
39
filename = ' __PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-pipes-heated.png' ,
41
40
width = 192 ,
42
41
height = 188 ,
43
42
scale = 0.5 ,
44
43
shift = util .by_pixel (- 0.5 , - 4.5 )
45
44
},
46
45
47
- picture = {
46
+ picture = {
48
47
layers = {
49
48
{
50
49
filename = ' __base__/graphics/entity/nuclear-reactor/reactor.png' ,
@@ -64,7 +63,7 @@ data:extend({
64
63
}
65
64
},
66
65
67
- working_light_picture = {
66
+ working_light_picture = {
68
67
filename = ' __PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-lights-color.png' ,
69
68
blend_mode = ' additive' ,
70
69
draw_as_glow = true ,
@@ -74,7 +73,7 @@ data:extend({
74
73
shift = { - 0.03125 , - 0.1875 }
75
74
},
76
75
77
- heat_buffer = {
76
+ heat_buffer = {
78
77
max_temperature = 1000 ,
79
78
specific_heat = ' 10MJ' ,
80
79
max_transfer = ' 10GW' ,
@@ -121,7 +120,7 @@ data:extend({
121
120
shift = util .by_pixel (- 2 , - 16 )
122
121
}
123
122
},
124
- connection_patches_connected = {
123
+ connection_patches_connected = {
125
124
sheet = {
126
125
filename = ' __PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches.png' ,
127
126
width = 64 ,
@@ -130,7 +129,7 @@ data:extend({
130
129
variation_count = 8 ,
131
130
}
132
131
},
133
- connection_patches_disconnected = {
132
+ connection_patches_disconnected = {
134
133
sheet = {
135
134
filename = ' __PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches.png' ,
136
135
width = 64 ,
@@ -140,7 +139,7 @@ data:extend({
140
139
scale = 0.5
141
140
}
142
141
},
143
- heat_connection_patches_connected = {
142
+ heat_connection_patches_connected = {
144
143
sheet = apply_heat_pipe_glow {
145
144
filename =
146
145
' __PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches-heated.png' ,
@@ -162,18 +161,29 @@ data:extend({
162
161
}
163
162
},
164
163
165
- vehicle_impact_sound = data .raw [' reactor' ][' nuclear-reactor' ].vehicle_impact_sound ,
166
- open_sound = data .raw [' reactor' ][' nuclear-reactor' ].open_sound ,
167
- close_sound = data .raw [' reactor' ][' nuclear-reactor' ].close_sound ,
168
- working_sound = data .raw [' reactor' ][' nuclear-reactor' ].working_sound ,
169
- meltdown_action = data .raw [' reactor' ][' nuclear-reactor' ].meltdown_action
164
+ impact_category = " metal-large" ,
165
+ vehicle_impact_sound = data .raw [' reactor' ][' nuclear-reactor' ].vehicle_impact_sound ,
166
+ open_sound = data .raw [' reactor' ][' nuclear-reactor' ].open_sound ,
167
+ close_sound = data .raw [' reactor' ][' nuclear-reactor' ].close_sound ,
168
+ working_sound = data .raw [' reactor' ][' nuclear-reactor' ].working_sound ,
169
+ meltdown_action = data .raw [' reactor' ][' nuclear-reactor' ].meltdown_action ,
170
+
171
+ default_temperature_signal = data .raw [' reactor' ][' nuclear-reactor' ].default_temperature_signal ,
172
+ circuit_wire_max_distance = data .raw [' reactor' ][' nuclear-reactor' ].circuit_wire_max_distance ,
173
+ circuit_connector = circuit_connector_definitions .create_single (
174
+ universal_connector_template ,
175
+ {
176
+ variation = 27 ,
177
+ main_offset = util .by_pixel (40 * 0.6 , 40 * 0.6 ),
178
+ shadow_offset = util .by_pixel (45 * 0.6 , 54.5 * 0.6 ),
179
+ show_shadow = false
180
+ }
181
+ )
170
182
},
171
183
{
172
184
type = ' reactor' ,
173
185
name = ' breeder-reactor' ,
174
186
icon = ' __PlutoniumEnergy__/graphics/icons/breeder-reactor.png' ,
175
- icon_size = 64 ,
176
- icon_mipmaps = 4 ,
177
187
flags = { ' placeable-neutral' , ' player-creation' },
178
188
minable = { mining_time = 0.5 , result = ' breeder-reactor' },
179
189
max_health = 750 ,
@@ -364,10 +374,23 @@ data:extend({
364
374
}
365
375
},
366
376
377
+ impact_category = " metal-large" ,
367
378
vehicle_impact_sound = data .raw [' reactor' ][' nuclear-reactor' ].vehicle_impact_sound ,
368
379
open_sound = data .raw [' reactor' ][' nuclear-reactor' ].open_sound ,
369
380
close_sound = data .raw [' reactor' ][' nuclear-reactor' ].close_sound ,
370
381
working_sound = data .raw [' reactor' ][' nuclear-reactor' ].working_sound ,
371
- meltdown_action = data .raw [' reactor' ][' nuclear-reactor' ].meltdown_action
382
+ meltdown_action = data .raw [' reactor' ][' nuclear-reactor' ].meltdown_action ,
383
+
384
+ default_temperature_signal = data .raw [' reactor' ][' nuclear-reactor' ].default_temperature_signal ,
385
+ circuit_wire_max_distance = data .raw [' reactor' ][' nuclear-reactor' ].circuit_wire_max_distance ,
386
+ circuit_connector = circuit_connector_definitions .create_single (
387
+ universal_connector_template ,
388
+ {
389
+ variation = 27 ,
390
+ main_offset = util .by_pixel (40 * 1.4 , 40 * 1.4 ),
391
+ shadow_offset = util .by_pixel (45 * 1.4 , 54.5 * 1.4 ),
392
+ show_shadow = false
393
+ }
394
+ )
372
395
}
373
396
})
0 commit comments