update to 2.0
This commit is contained in:
parent
9407fdfb8e
commit
772748cbe4
7 changed files with 77 additions and 83 deletions
|
|
@ -6,10 +6,10 @@ require("compatibility/crafting-efficiency")
|
||||||
|
|
||||||
if data.raw.resource["stone"] then
|
if data.raw.resource["stone"] then
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
local noise = require('noise');
|
-- local noise = require('noise');
|
||||||
-- Increase richness of stone a bit
|
-- -- Increase richness of stone a bit
|
||||||
data.raw.resource["stone"].autoplace.richness_expression =
|
-- data.raw.resource["stone"].autoplace.richness_expression =
|
||||||
data.raw.resource["stone"].autoplace.richness_expression * noise.to_noise_expression(4/3)
|
-- data.raw.resource["stone"].autoplace.richness_expression noise.to_noise_expression(4/3)
|
||||||
else
|
else
|
||||||
log("Replacing vanilla stone autoplace")
|
log("Replacing vanilla stone autoplace")
|
||||||
local resource_autoplace = require('resource-autoplace');
|
local resource_autoplace = require('resource-autoplace');
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "bzsilicon",
|
"name": "bzsilicon",
|
||||||
"version": "0.11.12",
|
"version": "2.0.0",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "2.0",
|
||||||
"title": "Silica & Silicon",
|
"title": "Silica & Silicon",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
"contact": "",
|
"contact": "",
|
||||||
|
|
|
||||||
|
|
@ -8,18 +8,17 @@ gyro_ingredients = { -- outputs 4
|
||||||
|
|
||||||
gyro_prereqs = {util.me.silicon_processing}
|
gyro_prereqs = {util.me.silicon_processing}
|
||||||
if mods.bzcarbon then
|
if mods.bzcarbon then
|
||||||
table.insert(gyro_ingredients, {"diamond", 1})
|
table.insert(gyro_ingredients, util.item({"diamond", 1}))
|
||||||
table.insert(gyro_prereqs, "diamond-processing")
|
table.insert(gyro_prereqs, "diamond-processing")
|
||||||
end
|
end
|
||||||
if mods.bztungsten then
|
if mods.bztungsten then
|
||||||
table.insert(gyro_ingredients, {"tungsten-plate", 1})
|
table.insert(gyro_ingredients, util.item({"tungsten-plate", 1}))
|
||||||
table.insert(gyro_prereqs, "tungsten-processing")
|
table.insert(gyro_prereqs, "tungsten-processing")
|
||||||
elseif mods.bztitanium then
|
elseif mods.bztitanium then
|
||||||
table.insert(gyro_ingredients, {"titanium-plate", 1})
|
table.insert(gyro_ingredients, util.item({"titanium-plate", 1}))
|
||||||
table.insert(gyro_prereqs, "titanium-processing")
|
table.insert(gyro_prereqs, "titanium-processing")
|
||||||
elseif mods.Krastorio2 then
|
elseif mods.Krastorio2 then
|
||||||
table.insert(gyro_ingredients, {"rare-metals", 1})
|
table.insert(gyro_ingredients, util.item("rare-metals", 1))
|
||||||
-- table.insert(gyro_prereqs, "titanium-processing")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -40,9 +39,9 @@ data:extend({
|
||||||
subgroup = "intermediate-product",
|
subgroup = "intermediate-product",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 12,
|
energy_required = 12,
|
||||||
|
allow_productivity = true,
|
||||||
ingredients = gyro_ingredients,
|
ingredients = gyro_ingredients,
|
||||||
result = "gyro",
|
results = {util.item("gyro", 4)},
|
||||||
result_count = 4,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "technology",
|
type = "technology",
|
||||||
|
|
|
||||||
|
|
@ -14,20 +14,16 @@ data:extend(
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "optical-fiber",
|
name = "optical-fiber",
|
||||||
normal =
|
|
||||||
{
|
|
||||||
enabled = false,
|
enabled = false,
|
||||||
ingredients = {{"silica", 1}},
|
allow_productivity = true,
|
||||||
result = "optical-fiber",
|
ingredients = {util.item("silica", 1)},
|
||||||
result_count = 1
|
results = {util.item("optical-fiber", 1)},
|
||||||
},
|
-- expensive =
|
||||||
expensive =
|
-- {
|
||||||
{
|
-- enabled = false,
|
||||||
enabled = false,
|
-- ingredients = {{"silica", 2}},
|
||||||
ingredients = {{"silica", 2}},
|
-- results = {util.item("optical-fiber", 1)},
|
||||||
result = "optical-fiber",
|
-- },
|
||||||
result_count = 1
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -52,7 +48,7 @@ data:extend(
|
||||||
},
|
},
|
||||||
time = 10
|
time = 10
|
||||||
},
|
},
|
||||||
prerequisites = {"optics", "silica-processing"},
|
prerequisites = {"lamp", "silica-processing"},
|
||||||
order = "b-b"
|
order = "b-b"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,48 +8,44 @@ data:extend(
|
||||||
category = "crushing",
|
category = "crushing",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 4,
|
energy_required = 4,
|
||||||
ingredients = {{"quartz", 10}},
|
allow_productivity = true,
|
||||||
result = "silica",
|
ingredients = {util.item("quartz", 10)},
|
||||||
result_count = 30
|
results = {util.item("silica", 30)}
|
||||||
} or util.me.use_bio_crushed_stone() and {
|
} or util.me.use_bio_crushed_stone() and {
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "silica",
|
name = "silica",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 6,
|
energy_required = 6,
|
||||||
ingredients = {{"stone-crushed", 4}},
|
allow_productivity = true,
|
||||||
result = "silica",
|
ingredients = {util.item("stone-crushed", 4)},
|
||||||
result_count = 5,
|
results = {util.item("silica", 5)},
|
||||||
} or mods["omnimatter"] and {
|
} or mods["omnimatter"] and {
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "silica",
|
name = "silica",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 6,
|
energy_required = 6,
|
||||||
ingredients = {{"stone-crushed", 4}},
|
allow_productivity = true,
|
||||||
result = "silica",
|
ingredients = {util.item("stone-crushed", 4)},
|
||||||
result_count = 5,
|
results = {util.item("silica", 5)},
|
||||||
} or
|
} or
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "silica",
|
name = "silica",
|
||||||
category = "smelting",
|
category = mods["space-age"] and "basic-crushing" or "smelting",
|
||||||
normal =
|
|
||||||
{
|
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 3.2,
|
energy_required = 3.2,
|
||||||
ingredients = {{"stone-brick", 1}},
|
allow_productivity = true,
|
||||||
result = "silica",
|
ingredients = mods["space-age"] and {util.item("stone", 2)} or {util.item("stone-brick", 1)},
|
||||||
result_count = 5
|
results = {util.item("silica", 5)}
|
||||||
},
|
-- expensive =
|
||||||
expensive =
|
-- {
|
||||||
{
|
-- enabled = false,
|
||||||
enabled = false,
|
-- energy_required = 6.4,
|
||||||
energy_required = 6.4,
|
-- ingredients = {util.item("stone-brick", 2)},
|
||||||
ingredients = {{"stone-brick", 2}},
|
-- results = {util.item("silica", 5)}
|
||||||
result = "silica",
|
-- },
|
||||||
result_count = 5
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,32 +16,29 @@ data:extend(
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 14.4,
|
energy_required = 14.4,
|
||||||
|
allow_productivity = true,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{"silica", 18},
|
util.item("silica", 18),
|
||||||
{"coke", 1}
|
util.item("coke", 1),
|
||||||
},
|
},
|
||||||
result = "silicon",
|
results = {util.item("silicon", 3)}
|
||||||
result_count = 3
|
|
||||||
} or {
|
} or {
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "silicon",
|
name = "silicon",
|
||||||
category = "smelting",
|
category = "smelting",
|
||||||
normal =
|
|
||||||
{
|
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 3.2,
|
energy_required = 3.2,
|
||||||
ingredients = {{"silica", 10}},
|
allow_productivity = true,
|
||||||
result = "silicon",
|
ingredients = {util.item("silica", 10)},
|
||||||
result_count = 1
|
results = {util.item("silicon", 1)}
|
||||||
},
|
-- expensive =
|
||||||
expensive =
|
-- {
|
||||||
{
|
-- enabled = false,
|
||||||
enabled = false,
|
-- energy_required = 3.2,
|
||||||
energy_required = 3.2,
|
-- ingredients = {{"silica", 10}},
|
||||||
ingredients = {{"silica", 10}},
|
-- result = "silicon",
|
||||||
result = "silicon",
|
-- result_count = 1
|
||||||
result_count = 1
|
-- },
|
||||||
},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
(not mods["Krastorio2"]) and
|
(not mods["Krastorio2"]) and
|
||||||
|
|
@ -105,6 +102,7 @@ data:extend({
|
||||||
subgroup = "intermediate-product",
|
subgroup = "intermediate-product",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 20,
|
energy_required = 20,
|
||||||
|
allow_productivity = true,
|
||||||
ingredients = (mods["Krastorio2"] and {
|
ingredients = (mods["Krastorio2"] and {
|
||||||
{type= "item", name="silicon", amount=20},
|
{type= "item", name="silicon", amount=20},
|
||||||
{type= "fluid", name="hydrogen-chloride", amount=50},
|
{type= "fluid", name="hydrogen-chloride", amount=50},
|
||||||
|
|
@ -112,8 +110,7 @@ data:extend({
|
||||||
{type= "item", name="silicon", amount=20},
|
{type= "item", name="silicon", amount=20},
|
||||||
{type= "fluid", name="sulfuric-acid", amount=50},
|
{type= "fluid", name="sulfuric-acid", amount=50},
|
||||||
}),
|
}),
|
||||||
result = "silicon-wafer",
|
results = {util.item("silicon-wafer", 10)}
|
||||||
result_count = 10,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "item",
|
type = "item",
|
||||||
|
|
@ -131,6 +128,7 @@ data:extend({
|
||||||
subgroup = "intermediate-product",
|
subgroup = "intermediate-product",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
|
allow_productivity = true,
|
||||||
ingredients = (mods["bzlead"] and not mods["angelssmelting"] and {
|
ingredients = (mods["bzlead"] and not mods["angelssmelting"] and {
|
||||||
{type= "item", name="silicon", amount=1},
|
{type= "item", name="silicon", amount=1},
|
||||||
{type= "item", name="electronic-circuit", amount=1},
|
{type= "item", name="electronic-circuit", amount=1},
|
||||||
|
|
@ -139,8 +137,7 @@ data:extend({
|
||||||
{type= "item", name="silicon", amount=1},
|
{type= "item", name="silicon", amount=1},
|
||||||
{type= "item", name="electronic-circuit", amount=1},
|
{type= "item", name="electronic-circuit", amount=1},
|
||||||
}),
|
}),
|
||||||
result = "solar-cell",
|
results = {util.item("solar-cell", 2)}
|
||||||
result_count = 2,
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ if util.me.use_gyros() then
|
||||||
util.add_ingredient("se-thruster-suit-2", "gyro", 2)
|
util.add_ingredient("se-thruster-suit-2", "gyro", 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
util.replace_some_ingredient("space-platform-foundation", "copper-cable", 10, "optical-fiber", 10)
|
||||||
|
|
||||||
|
|
||||||
if not mods["Krastorio2"] then
|
if not mods["Krastorio2"] then
|
||||||
util.remove_ingredient("concrete", "stone-brick");
|
util.remove_ingredient("concrete", "stone-brick");
|
||||||
|
|
@ -72,11 +74,11 @@ if not mods["Krastorio2"] then
|
||||||
end
|
end
|
||||||
util.replace_ingredient("solar-panel-equipment", "solar-panel", "solar-cell")
|
util.replace_ingredient("solar-panel-equipment", "solar-panel", "solar-cell")
|
||||||
|
|
||||||
if not mods.modmashsplinterelectronics then
|
if not mods.modmashsplinterelectonics then
|
||||||
util.multiply_recipe("advanced-circuit", 3)
|
util.multiply_recipe("advanced-circuit", 3)
|
||||||
util.replace_some_ingredient("advanced-circuit", "electronic-circuit", 3, "silicon-wafer", 1)
|
util.replace_some_ingredient("advanced-circuit", "electronic-circuit", 3, "silicon-wafer", 1)
|
||||||
end
|
end
|
||||||
util.add_prerequisite("advanced-electronics", util.me.silicon_processing)
|
util.add_prerequisite("advanced-circuit", util.me.silicon_processing)
|
||||||
|
|
||||||
else
|
else
|
||||||
util.replace_some_ingredient("solar-panel", "electronic-circuit", 10, "silicon", 10)
|
util.replace_some_ingredient("solar-panel", "electronic-circuit", 10, "silicon", 10)
|
||||||
|
|
@ -90,7 +92,10 @@ if not mods["Krastorio2"] then
|
||||||
util.remove_ingredient("speed-module", "electronic-circuit")
|
util.remove_ingredient("speed-module", "electronic-circuit")
|
||||||
util.add_ingredient("speed-module", "silicon", 3)
|
util.add_ingredient("speed-module", "silicon", 3)
|
||||||
|
|
||||||
util.add_prerequisite("advanced-electronics-2", util.me.silicon_processing)
|
if not mods.modmashsplinterelectonics then
|
||||||
|
util.replace_some_ingredient("advanced-circuit", "electronic-circuit", 1, "silicon", 1)
|
||||||
|
end
|
||||||
|
util.add_prerequisite("advanced-circuit", util.me.silicon_processing)
|
||||||
end
|
end
|
||||||
|
|
||||||
util.add_prerequisite("solar-energy", "silicon-processing")
|
util.add_prerequisite("solar-energy", "silicon-processing")
|
||||||
|
|
@ -145,6 +150,7 @@ util.add_ingredient("arithmetic-combinator", "optical-fiber", 1)
|
||||||
util.add_ingredient("constant-combinator", "optical-fiber", 1)
|
util.add_ingredient("constant-combinator", "optical-fiber", 1)
|
||||||
util.add_ingredient("decider-combinator", "optical-fiber", 1)
|
util.add_ingredient("decider-combinator", "optical-fiber", 1)
|
||||||
util.add_ingredient("programmable-speaker", "optical-fiber", 1)
|
util.add_ingredient("programmable-speaker", "optical-fiber", 1)
|
||||||
|
util.add_ingredient("display-panel", "optical-fiber", 1)
|
||||||
if mods["UsefulCombinators"] then
|
if mods["UsefulCombinators"] then
|
||||||
for i, v in ipairs(useful_combinators) do
|
for i, v in ipairs(useful_combinators) do
|
||||||
util.add_ingredient(v, "optical-fiber", 1)
|
util.add_ingredient(v, "optical-fiber", 1)
|
||||||
|
|
@ -231,8 +237,8 @@ if mods["extended-research-system"] and mods["Bio_Industries"] then
|
||||||
category = "crafting",
|
category = "crafting",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
energy_required = 6,
|
energy_required = 6,
|
||||||
ingredients = {{"iron-plate", 100}, {"iron-gear-wheel", 5}},
|
ingredients = {util.item("iron-plate", 100), util.item("iron-gear-wheel", 5)},
|
||||||
result = "bi-stone-crusher",
|
results = util.item("bi-stone-crusher"),
|
||||||
}})
|
}})
|
||||||
if data.raw.recipe["bi-crushed-stone-1"] then
|
if data.raw.recipe["bi-crushed-stone-1"] then
|
||||||
data.raw.recipe["bi-crushed-stone-1"].enabled = true
|
data.raw.recipe["bi-crushed-stone-1"].enabled = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue