Finished adding the uranium 238 replacement code.

This commit is contained in:
Adamo 2020-06-22 09:53:36 -04:00
parent f31f6c1785
commit fbfbc7852a
2 changed files with 28 additions and 0 deletions

13
data-final-fixes.lua Normal file
View File

@ -0,0 +1,13 @@
require("factsheet")
if settings.startup["adamo-nuclear-recipe-trolling"].value then
for _,recipe in pairs(data.raw.recipe) do
if recipe_uses(recipe,"uranium-238") then
replace_in_recipe_io(
recipe,
"uranium-238",
"adamo-nuclear-DU-oxide"
)
end
end
end

15
settings.lua Normal file
View File

@ -0,0 +1,15 @@
data:extend({
{
name = "adamo-nuclear-recipe-trolling",
type = "bool-setting",
setting_type = "startup",
default_value = true,
order = "a"
},{
name = "adamo-nuclear-uranium-belt-recipe-override",
type = "bool-setting",
setting_type = "startup",
default_value = true,
order = "b"
}
})