132 impact_category = "glass", |
133 impact_category = "glass", |
133 open_sound = { filename = "__base__/sound/open-close/lab-open.ogg", volume = 0.6 }, |
134 open_sound = { filename = "__base__/sound/open-close/lab-open.ogg", volume = 0.6 }, |
134 close_sound = { filename = "__base__/sound/open-close/lab-close.ogg", volume = 0.6 }, |
135 close_sound = { filename = "__base__/sound/open-close/lab-close.ogg", volume = 0.6 }, |
135 energy_source = table.deepcopy(data.raw['fusion-reactor']['fusion-reactor'].burner), |
136 energy_source = table.deepcopy(data.raw['fusion-reactor']['fusion-reactor'].burner), |
136 energy_usage = "1MW", |
137 energy_usage = "1MW", |
137 researching_speed = settings.startup["fusion-lab-researching-speed"].value, |
138 researching_speed = tonumber(settings.startup["fusion-lab-researching-speed"].value), |
138 module_slots = settings.startup["fusion-lab-module-slots"].value, |
139 module_slots = tonumber(settings.startup["fusion-lab-module-slots"].value), |
139 inputs = table.deepcopy(data.raw.lab.biolab.inputs), |
140 inputs = table.deepcopy(data.raw.lab.biolab.inputs), |
140 science_pack_drain_rate_percent = settings.startup["fusion-lab-drain-rate-percent"].value, |
141 science_pack_drain_rate_percent = tonumber(settings.startup["fusion-lab-drain-rate-percent"].value), |
141 icons_positioning = data.raw.lab.biolab.icons_positioning, |
142 icons_positioning = data.raw.lab.biolab.icons_positioning, |
142 }, |
143 }, |
143 { |
144 { |
144 type = "heat-interface", |
145 type = "reactor", |
145 name = "fusion-lab-heat-interface", |
146 name = "fusion-lab-heat-interface", |
146 icon = "__base__/graphics/icons/heat-interface.png", |
147 icon = "__base__/graphics/icons/heat-interface.png", |
147 flags = {"placeable-player", "not-on-map", "not-flammable", "not-blueprintable", "not-deconstructable"}, |
148 flags = { |
|
149 "placeable-player", |
|
150 "not-on-map", |
|
151 "not-flammable", |
|
152 "not-blueprintable", |
|
153 "not-deconstructable", |
|
154 "no-automated-item-insertion", |
|
155 }, |
148 placeable_by = {item = "fusion-lab", count = 1}, |
156 placeable_by = {item = "fusion-lab", count = 1}, |
149 collision_mask = {layers={}}, |
157 collision_mask = {layers={}}, |
150 selection_priority = 150, |
158 selection_priority = 150, |
151 hidden = true, |
159 hidden = true, |
|
160 energy_source = {type="void"}, |
|
161 consumption = "0.001W", |
152 factoriopedia_alternative = "fusion-lab", |
162 factoriopedia_alternative = "fusion-lab", |
153 max_health = 200, |
163 max_health = 200, |
154 corpse = "small-remnants", |
164 corpse = "small-remnants", |
155 collision_box = data.raw.lab.biolab.collision_box, -- 5×5 |
165 collision_box = table.deepcopy(data.raw.lab.biolab.collision_box), |
156 selection_box = data.raw.lab.lab.selection_box, -- 3×3 |
166 selection_box = {{-2.5, 0.5}, {-0.5, 2.5}}, |
157 gui_mode = "none", -- all, none, admins |
|
158 open_sound = data.raw["fusion-reactor"]["fusion-reactor"].open_sound, |
167 open_sound = data.raw["fusion-reactor"]["fusion-reactor"].open_sound, |
159 close_sound = data.raw["fusion-reactor"]["fusion-reactor"].close_sound, |
168 close_sound = data.raw["fusion-reactor"]["fusion-reactor"].close_sound, |
|
169 lower_layer_picture = table.deepcopy(nuclear_reactor.lower_layer_picture), |
|
170 heat_lower_layer_picture = table.deepcopy(nuclear_reactor.heat_lower_layer_picture), |
|
171 connection_patches_connected = table.deepcopy(nuclear_reactor.connection_patches_connected), |
|
172 connection_patches_disconnected = table.deepcopy(nuclear_reactor.connection_patches_disconnected), |
|
173 heat_connection_patches_connected = table.deepcopy(nuclear_reactor.heat_connection_patches_connected), |
|
174 heat_connection_patches_disconnected = table.deepcopy(nuclear_reactor.heat_connection_patches_disconnected), |
|
175 --circuit_connector = table.deepcopy(data.raw["rocket-silo"]["rocket-silo"].circuit_connector), |
|
176 circuit_wire_max_distance = nuclear_reactor.circuit_wire_max_distance, |
160 heat_buffer = |
177 heat_buffer = |
161 { |
178 { |
162 max_temperature = 1000, |
179 max_temperature = 1000, |
163 specific_heat = "1MJ", |
180 specific_heat = "10MJ", |
164 max_transfer = "1GW", |
181 max_transfer = "1GW", |
165 default_temperature = 15, |
182 default_temperature = 15, |
166 min_working_temperature = 15, |
183 min_working_temperature = 15, |
167 pipe_covers = data.raw.boiler["heat-exchanger"].energy_source.pipe_covers, |
184 connections = table.deepcopy(nuclear_reactor.heat_buffer.connections), |
168 heat_pipe_covers = data.raw.boiler["heat-exchanger"].energy_source.heat_pipe_covers, |
185 }, |
169 connections = |
|
170 { |
|
171 {position = { 2, -2}, direction = defines.direction.north}, |
|
172 {position = {-2, -2}, direction = defines.direction.north}, |
|
173 {position = { 2, 2}, direction = defines.direction.south}, |
|
174 {position = {-2, 2}, direction = defines.direction.south}, |
|
175 {position = { 2, -2}, direction = defines.direction.east}, |
|
176 {position = { 2, 2}, direction = defines.direction.east}, |
|
177 {position = {-2, -2}, direction = defines.direction.west}, |
|
178 {position = {-2, 2}, direction = defines.direction.west}, |
|
179 } |
|
180 }, |
|
181 picture = |
|
182 { |
|
183 filename = "__base__/graphics/entity/nuclear-reactor/reactor-pipes.png", |
|
184 height = 316, |
|
185 width = 320, |
|
186 scale = 0.5, |
|
187 flags = {"no-crop"}, |
|
188 shift = util.by_pixel(-1, -5) |
|
189 } |
|
190 }, |
186 }, |
191 { |
187 { |
192 type = "item", |
188 type = "item", |
193 name = "fluoro-heat-exchanger", |
189 name = "fluoro-heat-exchanger", |
194 icons = fluoro_heat_exchanger_icons, |
190 icons = fluoro_heat_exchanger_icons, |