Added some settings and a new trolling recipe function that I still need to finish.

This commit is contained in:
Adamo 2020-06-22 09:41:12 -04:00
parent dfb8f802a7
commit f31f6c1785
3 changed files with 68 additions and 50 deletions

View File

@ -1,3 +1,12 @@
---------------------------------------------------------------------------------------------------
Version: 0.2.0
Date: 2020-06-22
Changes:
- Added algorithm to replace vanilla uranium items with Adamo
Nuclear uranium items.
- Added boolean settings for recipe overrides.
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.1.3 Version: 0.1.3
Date: 2020-02-04 Date: 2020-02-04

View File

@ -13,13 +13,11 @@ replace_recipe_io(
) )
if appmod and type(appmod) == "table" then if appmod and type(appmod) == "table" then
appmod appmod.blacklist["centrifuge"] = true
.blacklist["centrifuge"] = true
end end
if appmod and type(appmod) == "table" then if appmod and type(appmod) == "table" then
appmod appmod.blacklist["adamo-nuclear-production-reactor"] = true
.blacklist["adamo-nuclear-production-reactor"] = true
end end
data.raw.item["centrifuge"].subgroup = "adamo-nuclear-production-machine" data.raw.item["centrifuge"].subgroup = "adamo-nuclear-production-machine"
@ -170,6 +168,8 @@ atomic_bomb.icon =
"__adamo-nuclear__/graphics/icons/fission-rocket.png" "__adamo-nuclear__/graphics/icons/fission-rocket.png"
atomic_bomb.icon_size = 32 atomic_bomb.icon_size = 32
if settings.startup["adamo-nuclear-uranium-belt-recipe-override"].value then
if data.raw.recipe["uranium-transport-belt"] then if data.raw.recipe["uranium-transport-belt"] then
data.raw.recipe["uranium-transport-belt"].normal.energy_required = 50 data.raw.recipe["uranium-transport-belt"].normal.energy_required = 50
data.raw.recipe["uranium-transport-belt"].normal.ingredients = data.raw.recipe["uranium-transport-belt"].normal.ingredients =
@ -217,6 +217,7 @@ if data.raw.recipe["uranium-splitter"] then
} }
data.raw.recipe["uranium-splitter"].result_count = 100 data.raw.recipe["uranium-splitter"].result_count = 100
end end
end
reactor_item.icon = reactor_item.icon =
"__adamo-nuclear__/graphics/icons/nuclear-reactor.png" "__adamo-nuclear__/graphics/icons/nuclear-reactor.png"

View File

@ -97,3 +97,11 @@ centrifuge=Sorts isotopes by mass.
nuclear-reactor=Reacts by a fast neutron spectrum. nuclear-reactor=Reacts by a fast neutron spectrum.
adamo-nuclear-thermal-reactor=Reacts by a moderated neutron spectrum. adamo-nuclear-thermal-reactor=Reacts by a moderated neutron spectrum.
adamo-nuclear-production-reactor=Sorts and irradiates material using a pool reactor. Has a water-based particle accelerator. adamo-nuclear-production-reactor=Sorts and irradiates material using a pool reactor. Has a water-based particle accelerator.
[mod-setting-name]
adamo-nuclear-recipe-trolling=Replace vanilla uranium in recipes.
adamo-nuclear-uranium-belt-recipe-override=Override uranium belt recipes.
[mod-setting-description]
adamo-nuclear-recipe-trolling=Search all recipes, replacing vanilla uranium ingredients and results with equivalent Adamo Nuclear materials.
adamo-nuclear-uranium-belt-recipe-override=Alter ingredients in uranium belt recipes to be consistent with nuclear materials calculations.