minor refactor
This commit is contained in:
parent
9a863ae6f6
commit
8710b56d90
3 changed files with 13 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
local bzutil = require("data-util");
|
local util = require("data-util");
|
||||||
local util = require("util")
|
local futil = require("util")
|
||||||
if mods.Krastorio2 then
|
if mods.Krastorio2 then
|
||||||
if bzutil.me.use_fullerenes() then
|
if util.me.use_fullerenes() then
|
||||||
-- Add extra nanotube recipes.
|
-- Add extra nanotube recipes.
|
||||||
-- This could be moved to data-updates in future if necessary
|
-- This could be moved to data-updates in future if necessary
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
@ -19,7 +19,7 @@ if mods.Krastorio2 then
|
||||||
energy_required = 32,
|
energy_required = 32,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{"nanotubes", 6},
|
{"nanotubes", 6},
|
||||||
table.unpack(util.table.deepcopy(data.raw.recipe["imersium-plate"].ingredients)),
|
table.unpack(futil.table.deepcopy(data.raw.recipe["imersium-plate"].ingredients)),
|
||||||
},
|
},
|
||||||
result = "imersium-plate",
|
result = "imersium-plate",
|
||||||
result_count = 6,
|
result_count = 6,
|
||||||
|
|
@ -39,7 +39,7 @@ if mods.Krastorio2 then
|
||||||
energy_required = 12,
|
energy_required = 12,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{"nanotubes", 4},
|
{"nanotubes", 4},
|
||||||
table.unpack(util.table.deepcopy(data.raw.recipe["kr-s-c-imersium-beam"].ingredients)),
|
table.unpack(futil.table.deepcopy(data.raw.recipe["kr-s-c-imersium-beam"].ingredients)),
|
||||||
},
|
},
|
||||||
result = "imersium-beam",
|
result = "imersium-beam",
|
||||||
result_count = 2,
|
result_count = 2,
|
||||||
|
|
@ -59,15 +59,14 @@ if mods.Krastorio2 then
|
||||||
energy_required = 12,
|
energy_required = 12,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{"nanotubes", 2},
|
{"nanotubes", 2},
|
||||||
table.unpack(util.table.deepcopy(data.raw.recipe["kr-s-c-imersium-gear-wheel"].ingredients)),
|
table.unpack(futil.table.deepcopy(data.raw.recipe["kr-s-c-imersium-gear-wheel"].ingredients)),
|
||||||
},
|
},
|
||||||
result = "imersium-gear-wheel",
|
result = "imersium-gear-wheel",
|
||||||
result_count = 2,
|
result_count = 2,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
util.add_unlock("nanotubes", "imersium-plate-nanotubes")
|
||||||
bzutil.add_effect("nanotubes", {type="unlock-recipe", recipe="imersium-plate-nanotubes"})
|
util.add_unlock("nanotubes", "imersium-beam-nanotubes")
|
||||||
bzutil.add_effect("nanotubes", {type="unlock-recipe", recipe="imersium-beam-nanotubes"})
|
util.add_unlock("nanotubes", "imersium-gear-wheel-nanotubes")
|
||||||
bzutil.add_effect("nanotubes", {type="unlock-recipe", recipe="imersium-gear-wheel-nanotubes"})
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
local futil = require("util")
|
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
local futil = require("util")
|
||||||
|
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
-- core mining balancing graphite at full, diamond removed
|
-- core mining balancing graphite at full, diamond removed
|
||||||
|
|
@ -28,7 +28,7 @@ if mods["space-exploration"] then
|
||||||
result_count = 2,
|
result_count = 2,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
util.add_effect("se-aeroframe-scaffold", {type="unlock-recipe", recipe="aeroframe-scaffold-nanotubes"})
|
util.add_unlock("se-aeroframe-scaffold", "aeroframe-scaffold-nanotubes")
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
|
|
@ -53,7 +53,6 @@ if mods["space-exploration"] then
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
util.add_to_product("nanomaterial-nanotubes", "se-nanomaterial", 16)
|
util.add_to_product("nanomaterial-nanotubes", "se-nanomaterial", 16)
|
||||||
util.add_effect("se-nanomaterial", {type="unlock-recipe", recipe="nanomaterial-nanotubes"})
|
util.add_unlock("se-nanomaterial", "nanomaterial-nanotubes")
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzcarbon",
|
"name": "bzcarbon",
|
||||||
"version": "0.4.6",
|
"version": "0.4.7",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Graphite & Diamonds",
|
"title": "Graphite & Diamonds",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue