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,52 +168,55 @@ 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 data.raw.recipe["uranium-transport-belt"] then
data.raw.recipe["uranium-transport-belt"].normal.energy_required = 50 if settings.startup["adamo-nuclear-uranium-belt-recipe-override"].value then
data.raw.recipe["uranium-transport-belt"].normal.ingredients = if data.raw.recipe["uranium-transport-belt"] then
{ data.raw.recipe["uranium-transport-belt"].normal.energy_required = 50
{"iron-gear-wheel", 500}, data.raw.recipe["uranium-transport-belt"].normal.ingredients =
{"express-transport-belt", 100}, {
{"adamo-nuclear-Pu238-oxide",1}, {"iron-gear-wheel", 500},
{type="fluid", name="lubricant", amount=1000}, {"express-transport-belt", 100},
{type="item", name="electric-engine-unit", amount=100} {"adamo-nuclear-Pu238-oxide",1},
} {type="fluid", name="lubricant", amount=1000},
data.raw.recipe["uranium-transport-belt"].expensive.energy_required = 50 {type="item", name="electric-engine-unit", amount=100}
data.raw.recipe["uranium-transport-belt"].expensive.ingredients = }
{ data.raw.recipe["uranium-transport-belt"].expensive.energy_required = 50
{"iron-gear-wheel", 1000}, data.raw.recipe["uranium-transport-belt"].expensive.ingredients =
{"express-transport-belt", 100}, {
{"adamo-nuclear-Pu238-oxide",1}, {"iron-gear-wheel", 1000},
{type="fluid", name="lubricant", amount=2000}, {"express-transport-belt", 100},
{type="item", name="electric-engine-unit", amount=100} {"adamo-nuclear-Pu238-oxide",1},
} {type="fluid", name="lubricant", amount=2000},
data.raw.recipe["uranium-transport-belt"].normal.result_count = 100 {type="item", name="electric-engine-unit", amount=100}
data.raw.recipe["uranium-transport-belt"].expensive.result_count = 100 }
end data.raw.recipe["uranium-transport-belt"].normal.result_count = 100
if data.raw.recipe["uranium-underground-belt"] then data.raw.recipe["uranium-transport-belt"].expensive.result_count = 100
data.raw.recipe["uranium-underground-belt"].energy_required = 100 end
data.raw.recipe["uranium-underground-belt"].ingredients = if data.raw.recipe["uranium-underground-belt"] then
{ data.raw.recipe["uranium-underground-belt"].energy_required = 100
{"iron-gear-wheel", 2000}, data.raw.recipe["uranium-underground-belt"].ingredients =
{"express-underground-belt",100}, {
{"adamo-nuclear-Pu238-oxide",1}, {"iron-gear-wheel", 2000},
{type="fluid", name="lubricant", amount=1000}, {"express-underground-belt",100},
{type="item", name="electric-engine-unit", amount=100} {"adamo-nuclear-Pu238-oxide",1},
} {type="fluid", name="lubricant", amount=1000},
data.raw.recipe["uranium-underground-belt"].result_count = 100 {type="item", name="electric-engine-unit", amount=100}
end }
if data.raw.recipe["uranium-splitter"] then data.raw.recipe["uranium-underground-belt"].result_count = 100
data.raw.recipe["uranium-splitter"].energy_required = 200 end
data.raw.recipe["uranium-splitter"].ingredients = if data.raw.recipe["uranium-splitter"] then
{ data.raw.recipe["uranium-splitter"].energy_required = 200
{"express-splitter", 100}, data.raw.recipe["uranium-splitter"].ingredients =
{"iron-gear-wheel", 1000}, {
{"processing-unit", 100}, {"express-splitter", 100},
{"adamo-nuclear-Pu238-oxide",1}, {"iron-gear-wheel", 1000},
{type="fluid", name="lubricant", amount=1000}, {"processing-unit", 100},
{type="item", name="electric-engine-unit", amount=100} {"adamo-nuclear-Pu238-oxide",1},
} {type="fluid", name="lubricant", amount=1000},
data.raw.recipe["uranium-splitter"].result_count = 100 {type="item", name="electric-engine-unit", amount=100}
}
data.raw.recipe["uranium-splitter"].result_count = 100
end
end end
reactor_item.icon = reactor_item.icon =

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.