mirror of
https://asciireactor.com/factorio/adamo-nuclear.git
synced 2024-11-21 20:45:07 +00:00
Finished adding the uranium 238 replacement code.
This commit is contained in:
parent
f31f6c1785
commit
fbfbc7852a
13
data-final-fixes.lua
Normal file
13
data-final-fixes.lua
Normal 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
15
settings.lua
Normal 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"
|
||||||
|
}
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user