Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions data-util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ function util.se_landfill(params)
category = "hard-recycling",
order = "z-b-"..params.ore,
subgroup = "terrain",
result = "landfill",
ingredients = {{params.ore, 50}},
results = {{type="item", name="landfill", amount=1}},
ingredients = {{type="item", name=params.ore, amount=50}},
}
})
util.add_unlock("se-recycling-facility", lname)
Expand Down Expand Up @@ -611,15 +611,15 @@ function util.se_matter(params)
energy_required = params.energy_required,
enabled = false,
ingredients = {
{sedata, 1},
{type="item", name=sedata, amount=1},
{type="fluid", name="se-particle-stream", amount=50},
{type="fluid", name="se-space-coolant-supercooled", amount=25},
},
results = {
{params.ore, params.quant_out},
{"se-contaminated-scrap", 1},
{type=item, name=sedata, amount=1, probability=.99},
{type=item, name=sejunk, amount=1, probability=.01},
{type="item", name=params.ore, amount=params.quant_out},
{type="item", name="se-contaminated-scrap", amount=1},
{type="item", name=sedata, amount=1, probability=.99},
{type="item", name=sejunk, amount=1, probability=.01},
{type="fluid", name="se-space-coolant-hot", amount=25, ignored_by_stats=25, ignored_by_productivity=25},
}
}
Expand Down Expand Up @@ -650,13 +650,13 @@ function util.se_matter(params)
energy_required = 30,
enabled = false,
ingredients = {
{"se-kr-matter-liberation-data", 1},
{params.ore, params.quant_in},
{type="item", name="se-kr-matter-liberation-data", amount=1},
{type="item", name=params.ore, amount=params.quant_in},
{type="fluid", name="se-particle-stream", amount=50},
},
results = {
{type=item, name="se-kr-matter-liberation-data", amount=1, probability=.99},
{type=item, name=sejunk, amount=1, probability=.01},
{type="item", name="se-kr-matter-liberation-data", amount=1, probability=.99},
{type="item", name=sejunk, amount=1, probability=.01},
{type="fluid", name="se-particle-stream", amount=params.stream_out, ignored_by_stats=50, ignored_by_productivity=50},
}
}
Expand Down
22 changes: 11 additions & 11 deletions lead-recipe-se.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if mods["space-exploration"] then
se_delivery_cannon_recipes[util.me.lead_plate] = {name= util.me.lead_plate}
util.se_landfill({ore="lead-ore"})

if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
if util.se6() then
Copy link

@AtelierAmber AtelierAmber Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to be SE 0.7 as all the 0.6 changes that are encapsulated in this if statement are implemented in the 0.7 version. Ideally it should use the factorio helper functions to compare the version numbers, but because 0.6 isn't available on 2.0 it doesn't matter.

util.se_matter({ore="lead-ore", energy_required=1, quant_out=10, stream_out=60})
data:extend({
{
Expand Down Expand Up @@ -51,7 +51,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
},
energy_required = 60,
ingredients = {
{name = util.k2() and "enriched-lead" or "lead-ore", amount = 24},
{type="item", name = util.k2() and "enriched-lead" or "lead-ore", amount = 24},
{type = "fluid", name = "se-pyroflux", amount = 10},
},
enabled = false,
Expand All @@ -63,7 +63,7 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
type = "recipe",
name = "lead-ingot",
category = "casting",
results = {{"lead-ingot", 1}},
results = {{type="item", name="lead-ingot", amount=1}},
energy_required = 25,
ingredients = {
{type = "fluid", name = "molten-lead", amount = 250},
Expand All @@ -82,11 +82,11 @@ if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
{icon = "__bzlead__/graphics/icons/lead-ingot.png", icon_size = 128, scale = 0.125, shift = {-8, -8}},
},
results = {
{name = "lead-plate", amount = 10},
{type="item", name = "lead-plate", amount = 10},
},
energy_required = 5,
ingredients = {
{name = "lead-ingot", amount = 1}
{type="item", name = "lead-ingot", amount = 1}
},
enabled = false,
always_show_made_in = true,
Expand Down Expand Up @@ -122,11 +122,11 @@ else
always_show_made_in = true,
allow_as_intermediate = false,
ingredients = {
{name = "enriched-lead", amount = 8},
{name = "se-vulcanite-block", amount = 1},
{type="item", name = "enriched-lead", amount = 8},
{type="item", name = "se-vulcanite-block", amount = 1},
},
results = {
{name = util.me.lead_plate, amount = 12},
{type="item", name = util.me.lead_plate, amount = 12},
},
icons =
{
Expand All @@ -153,11 +153,11 @@ else
always_show_made_in = true,
allow_as_intermediate = false,
ingredients = {
{name = "lead-ore", amount = 8},
{name = "se-vulcanite-block", amount = 1},
{type="item", name = "lead-ore", amount = 8},
{type="item", name = "se-vulcanite-block", amount = 1},
},
results = {
{name = util.me.lead_plate, amount = util.me.byproduct() and 10 or 12},
{type="item", name = util.me.lead_plate, amount = util.me.byproduct() and 10 or 12},
},
icons =
{
Expand Down