update
This commit is contained in:
parent
0af7816957
commit
e7e6464a79
3 changed files with 8 additions and 4 deletions
|
|
@ -3,8 +3,7 @@ require("zirconium-recipe-updates-lds")
|
||||||
require("zirconium-recipe-final-stacking")
|
require("zirconium-recipe-final-stacking")
|
||||||
require("zirconium-recipe-final-rrr")
|
require("zirconium-recipe-final-rrr")
|
||||||
|
|
||||||
|
local util = require("data-util");
|
||||||
local util = require("__bzzirconium__.data-util");
|
|
||||||
|
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
-- Organization
|
-- Organization
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ require("map-gen-preset-updates")
|
||||||
require("omni")
|
require("omni")
|
||||||
require("strange-matter")
|
require("strange-matter")
|
||||||
|
|
||||||
local util = require("__bzzirconium__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
util.add_minable_result("simple-entity", "rock-huge", {name="zircon", amount_min = 15, amount_max=25})
|
util.add_minable_result("simple-entity", "rock-huge", {name="zircon", amount_min = 15, amount_max=25})
|
||||||
util.add_minable_result("simple-entity", "sand-rock-big", {name="zircon", amount_min = 15, amount_max=25})
|
util.add_minable_result("simple-entity", "sand-rock-big", {name="zircon", amount_min = 15, amount_max=25})
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,12 @@ function util.add_effect(technology_name, effect)
|
||||||
local technology = data.raw.technology[technology_name]
|
local technology = data.raw.technology[technology_name]
|
||||||
if technology then
|
if technology then
|
||||||
if not technology.effects then technology.effects = {} end
|
if not technology.effects then technology.effects = {} end
|
||||||
table.insert(technology.effects, effect)
|
if effect and effect.type == "unlock-recipe" then
|
||||||
|
if not data.raw.recipe[effect.recipe] then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
table.insert(technology.effects, effect)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue