From 7ca781e1d5bb34c601153c4acfc9cf61873b8b8a Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Mon, 14 Apr 2025 06:53:53 -0700 Subject: Initial (fork of robot-start-2 by Krypt0n_C0R3) --- prototypes/energy-pad.lua | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 prototypes/energy-pad.lua (limited to 'prototypes/energy-pad.lua') diff --git a/prototypes/energy-pad.lua b/prototypes/energy-pad.lua new file mode 100644 index 0000000..11b3c50 --- /dev/null +++ b/prototypes/energy-pad.lua @@ -0,0 +1,51 @@ +local portable_nuclear_reactor = data.raw["generator-equipment"]["fission-reactor-equipment"] +local clp = data.raw["cargo-landing-pad"]["cargo-landing-pad"] +local energy_source = util.table.deepcopy(data.raw["electric-energy-interface"]["hidden-electric-energy-interface"]) + +energy_source.name = "clp-electric-source" +energy_source.localised_name = {"entity-name.cargo-landing-pad"} +energy_source.icon = clp.icon +energy_source.energy_source = { + type = "electric", + buffer_capacity = "5MJ", + usage_priority = "tertiary" +} +energy_source.energy_production = portable_nuclear_reactor.power +energy_source.collision_box = clp.collision_box +energy_source.selection_box = clp.selection_box + + +local clp_recepie = util.table.deepcopy(data.raw["recipe"]["cargo-landing-pad"]) +clp_recepie.ingredients = +{ + {type = "item", name = "concrete", amount = 250}, + {type = "item", name = "processing-unit", amount = 35}, + {type = "item", name = "steel-plate", amount = 80}, + {type = "item", name = "accumulator", amount = 1}, + {type = "item", name = "fission-reactor-equipment", amount = 1}, + {type = "item", name = "construction-robot", amount = 10} +} + + +local thermal_pad = util.table.deepcopy(data.raw["heat-interface"]["heat-interface"]) +thermal_pad.minable = nil +thermal_pad.gui_mode = "none" +thermal_pad.heat_buffer.default_temperature = 15 +thermal_pad.heat_buffer.max_temperature = 31 +thermal_pad.heat_buffer.min_working_temperature = 30 +thermal_pad.flags = {"placeable-neutral", "player-creation", "not-deconstructable"} +thermal_pad.name = "clp-heat-interface" + +--entity.set_heat_setting{temperature = 1000, mode = "exactly"} + +local heat_pipe = util.table.deepcopy(data.raw["heat-pipe"]["heat-pipe"]) +heat_pipe.name = "clp-heat-pipe" +heat_pipe.flags = {"placeable-neutral", "player-creation", "not-deconstructable"} +heat_pipe.minable = nil + +data:extend({ + energy_source, + clp_recepie, + heat_pipe, + thermal_pad +}) -- cgit v1.2.1