|
1 | 1 | require "util"
|
2 | 2 | local entities = {}
|
3 | 3 |
|
| 4 | +-- TODO: Fix heated reactor graphics |
4 | 5 | local MOX_reactor = util.table.deepcopy(data.raw["reactor"]["nuclear-reactor"])
|
| 6 | + |
5 | 7 | MOX_reactor.name = "MOX-reactor"
|
6 | 8 | MOX_reactor.icon = "__PlutoniumEnergy__/graphics/icons/MOX-reactor.png"
|
7 | 9 | MOX_reactor.minable.result = "MOX-reactor"
|
8 |
| -MOX_reactor.minable.mining_time = 1 |
9 | 10 | MOX_reactor.max_health = 400
|
| 11 | + |
10 | 12 | MOX_reactor.consumption = "20MW"
|
11 | 13 | MOX_reactor.energy_source.fuel_category = "PE-MOX"
|
| 14 | + |
12 | 15 | MOX_reactor.collision_box = {{-1.2, -1.2}, {1.2, 1.2}}
|
13 | 16 | MOX_reactor.selection_box = {{-1.45, -1.45}, {1.45, 1.45}}
|
| 17 | + |
14 | 18 | MOX_reactor.next_upgrade = nil
|
| 19 | + |
15 | 20 | local lower_layer = MOX_reactor.lower_layer_picture
|
16 | 21 | lower_layer.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-pipes.png"
|
17 | 22 | lower_layer.width = 96
|
18 | 23 | lower_layer.height = 92
|
19 | 24 | lower_layer.hr_version.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-pipes.png"
|
20 | 25 | lower_layer.hr_version.width = 192
|
21 | 26 | lower_layer.hr_version.height = 192
|
| 27 | + |
| 28 | +MOX_reactor.heat_lower_layer_picture.filename = '__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-pipes-heated.png' |
| 29 | +MOX_reactor.heat_lower_layer_picture.width = 96 |
| 30 | +MOX_reactor.heat_lower_layer_picture.height = 96 |
| 31 | +MOX_reactor.heat_lower_layer_picture.hr_version.filename = '__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-pipes-heated.png' |
| 32 | +MOX_reactor.heat_lower_layer_picture.hr_version.width = 192 |
| 33 | +MOX_reactor.heat_lower_layer_picture.hr_version.height = 192 |
| 34 | + |
22 | 35 | MOX_reactor.picture.layers[1].scale = 0.6
|
| 36 | +MOX_reactor.picture.layers[1].shift = util.by_pixel(-4, -6) |
23 | 37 | MOX_reactor.picture.layers[1].hr_version.scale = 0.3
|
| 38 | +MOX_reactor.picture.layers[1].hr_version.shift = util.by_pixel(-3, -7) |
24 | 39 | MOX_reactor.picture.layers[2].scale = 0.6
|
25 | 40 | MOX_reactor.picture.layers[2].hr_version.scale = 0.3
|
| 41 | + |
26 | 42 | MOX_reactor.working_light_picture.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-lights-color.png"
|
27 | 43 | MOX_reactor.working_light_picture.scale = 0.6
|
28 | 44 | MOX_reactor.working_light_picture.hr_version.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-lights-color.png"
|
29 | 45 | MOX_reactor.working_light_picture.hr_version.scale = 0.3
|
30 |
| -MOX_reactor.light.color = {r = 0.0, g = 0.15, b = 1.0} |
| 46 | + |
| 47 | +MOX_reactor.light.color = {r = 0.0, g = 0.82, b = 0.9} |
| 48 | + |
31 | 49 | MOX_reactor.heat_buffer.connections = {
|
32 | 50 | {
|
33 | 51 | position = {-1, -1},
|
@@ -62,26 +80,41 @@ MOX_reactor.heat_buffer.connections = {
|
62 | 80 | direction = defines.direction.west
|
63 | 81 | }
|
64 | 82 | }
|
| 83 | + |
| 84 | +MOX_reactor.heat_buffer.heat_picture.scale = 0.6 |
| 85 | +MOX_reactor.heat_buffer.heat_picture.hr_version.scale = 0.3 |
| 86 | +MOX_reactor.heat_buffer.heat_glow.scale = 0.6 |
| 87 | + |
65 | 88 | local patches_pic_con = MOX_reactor.connection_patches_connected.sheet
|
66 | 89 | patches_pic_con.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches.png"
|
67 |
| -patches_pic_con.variation_count = 12 |
68 | 90 | patches_pic_con.hr_version.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-connect-patches.png"
|
69 |
| -patches_pic_con.hr_version.variation_count = 12 |
| 91 | + |
70 | 92 | local patches_pic_discon = MOX_reactor.connection_patches_disconnected.sheet
|
71 | 93 | patches_pic_discon.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches.png"
|
72 |
| -patches_pic_discon.variation_count = 12 |
73 | 94 | patches_pic_discon.hr_version.filename = "__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-connect-patches.png"
|
74 |
| -patches_pic_discon.hr_version.variation_count = 12 |
| 95 | + |
| 96 | +local patches_pic_con_heat = MOX_reactor.heat_connection_patches_connected.sheet |
| 97 | +patches_pic_con_heat.filename = '__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches-heated.png' |
| 98 | +patches_pic_con_heat.hr_version.filename = '__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-connect-patches-heated.png' |
| 99 | + |
| 100 | +local patches_pic_discon_heat = MOX_reactor.heat_connection_patches_disconnected.sheet |
| 101 | +patches_pic_discon_heat.filename = '__PlutoniumEnergy__/graphics/entity/MOX-reactor/MOX-reactor-connect-patches-heated.png' |
| 102 | +patches_pic_discon_heat.hr_version.filename = '__PlutoniumEnergy__/graphics/entity/MOX-reactor/hr-MOX-reactor-connect-patches-heated.png' |
75 | 103 | table.insert(entities, MOX_reactor)
|
76 | 104 |
|
| 105 | + |
77 | 106 | local industrial_reactor = util.table.deepcopy(data.raw["assembling-machine"]["centrifuge"])
|
| 107 | + |
78 | 108 | industrial_reactor.name = "industrial-reactor"
|
79 | 109 | industrial_reactor.icon = "__PlutoniumEnergy__/graphics/icons/industrial-reactor.png"
|
| 110 | +industrial_reactor.minable.result = "industrial-reactor" |
| 111 | + |
80 | 112 | industrial_reactor.crafting_categories = {"alpha-decay", "nucleosynthesis", "excess-neutron-capture"}
|
81 |
| -industrial_reactor.energy_usage = "420kW" |
82 | 113 | industrial_reactor.module_specification.module_slots = 4
|
| 114 | +industrial_reactor.energy_usage = "420kW" |
| 115 | + |
83 | 116 | industrial_reactor.working_visualisations[1].light.color = {r = 0.0, g = 0.15, b = 1.0}
|
84 |
| -industrial_reactor.minable.result = "industrial-reactor" |
| 117 | + |
85 | 118 | local indreact_anim = industrial_reactor.animation.layers
|
86 | 119 | indreact_anim[1].filename = "__PlutoniumEnergy__/graphics/entity/industrial-reactor/industrial-reactor-C-light.png"
|
87 | 120 | indreact_anim[1].hr_version.filename = "__PlutoniumEnergy__/graphics/entity/industrial-reactor/hr-industrial-reactor-C-light.png"
|
|
0 commit comments