fix when flake graphite is off
This commit is contained in:
parent
6272ffadba
commit
b1173d6080
7 changed files with 45 additions and 23 deletions
|
|
@ -1,6 +1,16 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods["space-age"] then
|
||||
local results = {
|
||||
{type = "item", name = "carbonic-asteroid-chunk", amount = 1, probability = 0.1},
|
||||
{type = "item", name = "rough-diamond", amount = 1, probability=0.5},
|
||||
}
|
||||
if util.me.use_flake_graphite() then
|
||||
table.insert(results, {type = "item", name = "flake-graphite", amount = 10})
|
||||
else
|
||||
table.insert(results, {type = "item", name = "graphite", amount = 10})
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
|
|
@ -21,12 +31,7 @@ if mods["space-age"] then
|
|||
{type = "item", name = "carbonic-asteroid-chunk", amount = 1}
|
||||
},
|
||||
energy_required = 5,
|
||||
results =
|
||||
{
|
||||
{type = "item", name = "flake-graphite", amount = 10},
|
||||
{type = "item", name = "rough-diamond", amount = 1, probability=0.5},
|
||||
{type = "item", name = "carbonic-asteroid-chunk", amount = 1, probability = 0.1}
|
||||
},
|
||||
results = results,
|
||||
allow_productivity = true,
|
||||
allow_decomposition = false
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ local resource_autoplace = require('resource-autoplace');
|
|||
|
||||
local util = require("data-util");
|
||||
|
||||
if util.me.use_flake_graphite() then
|
||||
|
||||
resource_autoplace.initialize_patch_set("graphite", true)
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["graphite"] = {}
|
||||
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["graphite"] = {}
|
||||
|
|
@ -10,8 +12,6 @@ if mods.tenebris then
|
|||
data.raw.planet.tenebris.map_gen_settings.autoplace_settings.entity.settings["graphite"] = {}
|
||||
end
|
||||
|
||||
|
||||
if util.me.use_flake_graphite() then
|
||||
data:extend({
|
||||
{
|
||||
type = "autoplace-control",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue