I'm using the Total Automization - RTS Rebalance mod, which uses various Armors in its soldier recipes.
The code has this IF statement to exclude unstackable items from getting a generated transport recipe. I'd like to know how to sidestep this check so I can get my Light Armor one at a time if I need to.
This is what I have so far, yet armor still isn't showing up?
local make_recipe = function(item)
...
--if util.has_flag(item, "not-stackable") or util.has_flag(item, "hidden") then return end
if util.has_flag(item, "hidden") then return end
if util.has_flag(item, "not-stackable") then
recipe_amount = 1
else
recipe_amount = 65000
end
...
results =
{
{type = "item", name = item.name, amount = recipe_amount, show_details_in_recipe_tooltip = false},