fusion-lab/data.lua

changeset 19
adbc5c74f279
parent 10
101603241531
equal deleted inserted replaced
18:6088a99984dc 19:adbc5c74f279
5 scale = 0.3, 5 scale = 0.3,
6 shift = {-8, -8}, 6 shift = {-8, -8},
7 }, 7 },
8 } 8 }
9 9
10 local nuclear_reactor = data.raw.reactor["nuclear-reactor"]
11
10 data:extend{ 12 data:extend{
11 { 13 {
12 type = "item", 14 type = "item",
13 name = "fusion-lab", 15 name = "fusion-lab",
14 icon = "__fusion-lab__/graphics/icons/photometric-lab-icon.png", 16 icon = "__fusion-lab__/graphics/icons/photometric-lab-icon.png",
15 subgroup = "production-machine", 17 subgroup = "production-machine",
16 order = "z[lab]b[fusion-lab]", 18 order = "z[lab]b[fusion-lab]",
17 inventory_move_sound = data.raw.lab.lab.inventory_move_sound, 19 inventory_move_sound = table.deepcopy(data.raw.item.lab.inventory_move_sound),
18 pick_sound = data.raw.item["fusion-reactor"].pick_sound, 20 pick_sound = table.deepcopy(data.raw.item.lab.pick_sound),
19 drop_sound = data.raw.item["fusion-reactor"].drop_sound, 21 drop_sound = table.deepcopy(data.raw.item.lab.drop_sound),
20 place_result = "fusion-lab", 22 place_result = "fusion-lab",
21 weight = 200 * kg, 23 weight = 200 * kg,
22 stack_size = 5, 24 stack_size = 5,
23 default_import_location = "aquilo" 25 default_import_location = "aquilo"
24 }, 26 },
104 working_sound = 106 working_sound =
105 { 107 {
106 -- it's a space age ensemble! 108 -- it's a space age ensemble!
107 sound = 109 sound =
108 { 110 {
109 -- filename = "__space-age__/sound/entity/fusion/fusion-reactor.ogg",
110 filename = "__space-age__/sound/entity/tesla-turret/tesla-turret-rotation-loop.ogg", 111 filename = "__space-age__/sound/entity/tesla-turret/tesla-turret-rotation-loop.ogg",
111 volume = 0.65, 112 volume = 0.65,
112 max_sounds_per_prototype = 2, 113 max_sounds_per_prototype = 2,
113 }, 114 },
114 fade_in_ticks = 4, 115 fade_in_ticks = 4,
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,

mercurial