From fbfbc7852ac35d88b326f5c8f974e86e6456d07a Mon Sep 17 00:00:00 2001 From: Adamo Date: Mon, 22 Jun 2020 09:53:36 -0400 Subject: [PATCH] Finished adding the uranium 238 replacement code. --- data-final-fixes.lua | 13 +++++++++++++ settings.lua | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 data-final-fixes.lua create mode 100644 settings.lua diff --git a/data-final-fixes.lua b/data-final-fixes.lua new file mode 100644 index 0000000..075a915 --- /dev/null +++ b/data-final-fixes.lua @@ -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 \ No newline at end of file diff --git a/settings.lua b/settings.lua new file mode 100644 index 0000000..24d7a75 --- /dev/null +++ b/settings.lua @@ -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" + } +}) \ No newline at end of file