diff options
author | Paul Oliver <contact@pauloliver.dev> | 2025-04-14 06:53:53 -0700 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2025-04-14 07:05:49 -0700 |
commit | 7ca781e1d5bb34c601153c4acfc9cf61873b8b8a (patch) | |
tree | ac1736609fa9ecd77cb9f87e8ac14af05c78c08b /prototypes/energy-pad.lua |
Initial (fork of robot-start-2 by Krypt0n_C0R3)
Diffstat (limited to 'prototypes/energy-pad.lua')
-rw-r--r-- | prototypes/energy-pad.lua | 51 |
1 files changed, 51 insertions, 0 deletions
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
+})
|