Updated with new recipe trolling algorithm.

This commit is contained in:
Adamo 2020-06-26 02:39:47 -04:00
parent fbfbc7852a
commit f5c83d7152
4 changed files with 75 additions and 108 deletions

View File

@ -1,11 +1,13 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.2.0 Version: 0.2.0
Date: 2020-06-22 Date: 2020-06-26
Changes: Changes:
- Added algorithm to replace vanilla uranium items with Adamo - Added algorithm to replace vanilla uranium items with Adamo
Nuclear uranium items. Nuclear uranium items.
- Added boolean settings for recipe overrides. - Added boolean settings for recipe overrides.
- Added steel sink for depleted uranium.
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.1.3 Version: 0.1.3

View File

@ -1,13 +0,0 @@
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

View File

@ -339,3 +339,36 @@ if not data.raw.fluid["adamo-chemical-hydrofluoric-acid"] then
} }
) )
end end
adamomods.logging=true
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_recipe_io(
recipe,
"uranium-238",
"adamo-nuclear-DU-oxide"
)
end
if recipe_uses(recipe,"uranium-235") then
replace_recipe_io(
recipe,
"uranium-235",
"adamo-nuclear-HEU-oxide"
)
end
end
end
local FeU_recipe = table.deepcopy(data.raw.recipe["steel-plate"])
FeU_recipe.name = "adamo-nuclear-steel-plate"
local fe_name,fe_count = get_ingredient(FeU_recipe,'iron-plate')
add_ingredient(FeU_recipe,'adamo-nuclear-DU-oxide',fe_count)
replace_recipe_io(FeU_recipe,'iron-plate','iron-ore')
mult_recipe_io(FeU_recipe,2,'steel-plate')
data:extend({FeU_recipe})
add_recipe_to_tech("uranium-processing","adamo-nuclear-steel-plate")
adamomods.logging=false

131
data.lua
View File

@ -1052,105 +1052,50 @@ data:extend({
thermal_reactor_recipe, thermal_reactor_recipe,
prod_reactor_recipe, prod_reactor_recipe,
}) })
add_recipe_to_tech("uranium-processing", add_recipes_to_tech("uranium-processing", {
"adamo-nuclear-urania-by-H2SO4" "adamo-nuclear-urania-by-H2SO4",
) "adamo-nuclear-urania-by-HF",
add_recipe_to_tech("uranium-processing", "adamo-nuclear-natural-uranium-hex",
"adamo-nuclear-urania-by-HF" "adamo-nuclear-LEU-enrichment",
) "adamo-nuclear-LEU-fuel-cell",
add_recipe_to_tech("uranium-processing",
"adamo-nuclear-natural-uranium-hex"
)
add_recipe_to_tech("uranium-processing",
"adamo-nuclear-LEU-enrichment"
)
add_recipe_to_tech("uranium-processing",
"adamo-nuclear-LEU-fuel-cell"
)
add_recipe_to_tech("uranium-processing",
"adamo-nuclear-thermal-reactor" "adamo-nuclear-thermal-reactor"
) })
add_recipe_to_tech("nuclear-power", add_recipes_to_tech("nuclear-power", {
"adamo-nuclear-HEU-enrichment" "adamo-nuclear-HEU-enrichment",
) "adamo-nuclear-WGU-enrichment",
add_recipe_to_tech("nuclear-power",
"adamo-nuclear-WGU-enrichment"
)
move_recipe_to_tech("nuclear-power",
"atomic-bomb" "atomic-bomb"
) })
add_recipe_to_tech("nuclear-fuel-reprocessing", add_recipes_to_tech("nuclear-fuel-reprocessing", {
"adamo-nuclear-LEU-PUREX-by-HF" "adamo-nuclear-LEU-PUREX-by-HF",
) "adamo-nuclear-LEU-PUREX-by-H2SO4",
add_recipe_to_tech("nuclear-fuel-reprocessing", "adamo-nuclear-LEU-REMIX",
"adamo-nuclear-LEU-PUREX-by-H2SO4" "adamo-nuclear-HEU-PUREX-by-HF",
) "adamo-nuclear-HEU-PUREX-by-H2SO4",
add_recipe_to_tech("nuclear-fuel-reprocessing", "adamo-nuclear-LEU-PUREX-enrichment",
"adamo-nuclear-LEU-REMIX" "adamo-nuclear-HEU-PUREX-enrichment",
) "adamo-nuclear-transmute-Pu238-oxide",
add_recipe_to_tech("nuclear-fuel-reprocessing", "adamo-nuclear-highgrade-RGPu-oxide",
"adamo-nuclear-HEU-PUREX-by-HF"
)
add_recipe_to_tech("nuclear-fuel-reprocessing",
"adamo-nuclear-HEU-PUREX-by-H2SO4"
)
add_recipe_to_tech("nuclear-fuel-reprocessing",
"adamo-nuclear-LEU-PUREX-enrichment"
)
add_recipe_to_tech("nuclear-fuel-reprocessing",
"adamo-nuclear-HEU-PUREX-enrichment"
)
add_recipe_to_tech("nuclear-fuel-reprocessing",
"adamo-nuclear-transmute-Pu238-oxide"
)
add_recipe_to_tech("nuclear-fuel-reprocessing",
"adamo-nuclear-highgrade-RGPu-oxide"
)
add_recipe_to_tech("nuclear-fuel-reprocessing",
"adamo-nuclear-raffinate-processing" "adamo-nuclear-raffinate-processing"
) })
add_recipe_to_tech("kovarex-enrichment-process", add_recipes_to_tech("kovarex-enrichment-process", {
"adamo-nuclear-aqueous-raffinate-processing" "adamo-nuclear-aqueous-raffinate-processing",
) "adamo-nuclear-production-reactor",
add_recipe_to_tech("kovarex-enrichment-process", "adamo-nuclear-MOX-fuel-cell",
"adamo-nuclear-production-reactor"
)
add_recipe_to_tech("kovarex-enrichment-process",
"adamo-nuclear-MOX-fuel-cell"
)
add_recipe_to_tech("kovarex-enrichment-process",
"adamo-nuclear-MOX-REMIX" "adamo-nuclear-MOX-REMIX"
) })
add_recipe_to_tech("atomic-bomb", add_recipes_to_tech("atomic-bomb", {
"adamo-nuclear-WGPu-enrichment" "adamo-nuclear-WGPu-enrichment",
)
add_recipe_to_tech("atomic-bomb",
"adamo-nuclear-thermonuclear-rocket" "adamo-nuclear-thermonuclear-rocket"
) })
for _,table_name in pairs({ set_productivity_recipes({
"productivity-module", "adamo-nuclear-urania-by-H2SO4",
"productivity-module-2", "adamo-nuclear-urania-by-HF",
"productivity-module-3" "adamo-nuclear-raffinate-processing",
}) do "adamo-nuclear-transmute-Pu238-oxide",
table.insert(data.raw.module[table_name].limitation, "adamo-nuclear-natural-uranium-hex",
"adamo-nuclear-urania-by-H2SO4"
)
table.insert(data.raw.module[table_name].limitation,
"adamo-nuclear-urania-by-HF"
)
table.insert(data.raw.module[table_name].limitation,
"adamo-nuclear-raffinate-processing"
)
table.insert(data.raw.module[table_name].limitation,
"adamo-nuclear-transmute-Pu238-oxide"
)
table.insert(data.raw.module[table_name].limitation,
"adamo-nuclear-natural-uranium-hex"
)
table.insert(data.raw.module[table_name].limitation,
"adamo-nuclear-highgrade-RGPu-oxide" "adamo-nuclear-highgrade-RGPu-oxide"
) })
end
-- Oxides and hexes. -- Oxides and hexes.
local order_number = 1 local order_number = 1
data:extend({{ data:extend({{