Solar Lamp


A self-powered lamp. No cables attached!

Utilities
10 months ago
0.17 - 2.0
13.3K

g Recipe modification

10 months ago
(updated 10 months ago)

Hey, just a thought, but maybe the solar lamp shouldn't require an entire solar panel?

Each solar panel makes 60kw, while the lamps only use 5kw. Maybe have it just use 2 copper, 2 steel, and 5 electronics or something like that? That's the adjusted 'solar panel' resource requirements, so it accounts for the amounts you would need, but makes them more proportional. The resources are a little of it, but that 10s crafting time added to each lamp makes them a pain to use.

4 months ago
(updated 4 months ago)

I'll second that. Requiring an entire Solar Panel for the large solar light makes sense. The smaller one should be able to away with a simpler recipe. Here's my suggestion:

  • Small Solar Lamp: 5 Copper Cable, 10 Electronic Circuits, 5 Steel Plates
  • Large Solar Lamp: 2 Small Solar Lamps, 1 Solar Panel.

edit I made the changes myself, on my local copy. It led me to discover that lamp recipe ingredients are defined twice - once within the Lua file for each lamp, and once again in data.lua where all ingredients are overrideen in full if solar-lamp-battery-needed is set to true. Generally speaking, it's advisable to avoid duplicating information like that. I'd recommend using:

if settings.startup["solar-lamp-battery-needed"].value == true then
table.insert(data.raw.recipe["solar-lamp-recipe"].ingredients, {type= "item", name = "battery", amount = 2})
table.insert(data.raw.recipe["large-solar-lamp-recipe"].ingredients, {type= "item", name = "battery", amount = 4})
end

instead. That leaves the rest of the ingredients unaffected, but simply adds a battery to the end of the array.

New response