Code: Select all
if settings.startup["pymods-acid-increase"].value then
recipes = {'concrete-richclay'}
for i, recipename in ipairs(recipes) do
Oldamount = data.raw["recipe"][recipename].ingredients["sulfuric-acid"]["amount"]
OV.patch_recipes({
{
name = recipename, ingredients =
{
{
name = "sulfuric-acid", type = "fluid", amount = 150 <--this needs to be a variable
--data.raw["recipe"][recipename].ingredients[1] = {"sulfuric-acid", 5 * 3}
}
}
}
})
end
end