any science from angel mods is set as tier 1 multipliers, as are any alien science from bob-warfare mod.
From what i have found out while tracking down the reason its because bob-weapons mod uses non-standard science (science-pack-gold + alien colored packs), while angel is using non-standard ingredient listing in the technology prototypes (see below).
regular setup:
ingredients = {{"automation-science-pack",1},{"logistic-science-pack",1}}
angels setup:
ingredients = {{type = "item", name = "automation-science-pack", amount = 1}, {type = "item", name = "logistic-science-pack", amount = 1}}
UPDATE:
my recommendation would be to add local functions to access the proper fields in the table as opposed to directly using []. so instead of Value[1] and Value[2] for name and amount, use getName(Value) and getAmount(Value) or similar. Same thing for setting the amount afterwards, use setAmount(Value, amount). I got it working on my end using the following:
local function getIngredientName(ingredientRow)
if ingredientRow.name then
-- angel mod style: (type: {type="item", name="ingredient-pack", amount = quantity} )
return ingredientRow.name
else
-- name not found, so basic setup (type: {"ingredient-pack", quantity})
return ingredientRow[1]
end
end
local function getIngredientAmount(ingredientRow)
if ingredientRow.amount then
-- angel mod style: (type: {type="item", name="ingredient-pack", amount = quantity} )
return ingredientRow.amount
else
-- name not found, so basic setup (type: {"ingredient-pack", quantity})
return ingredientRow[2]
end
end
local function setIngredientAmount(ingredientRow, quantity)
if ingredientRow.amount then
--angel mod style
ingredientRow.amount = quantity
else
-- regular
ingredientRow[2] = quantity
end
end
and naturally in your ingredient check loop <<<for Index, Value in pairs( tech.unit.ingredients ) do>>>
you would use <<<getIngredientName(Value) == "science-pack">>>
and similarly in the setting stage where you get the name, get the amount, and set the amount.
If you want to view the full mod, its here (I added support for gold science pack : bob warfare mod as well)
https://www.dropbox.com/s/gx5wnw4lv4i7d7o/ScienceCostTweakerM_0.18.4.zip?dl=0