I figured out how to do this at a faction level with TweakDefs so if I put (for example) all the bots on legion and all the players on not legion, I can increase all the resources of the bots by any multiplier.
Example: Legion +200%
local targetFaction = "leg"
local resourceMult = 3.0
local UnitDefs = UnitDefs or {}
for i, unit in pairs(UnitDefs) do
local faction = string.sub(i, 1, 3)
if faction == targetFaction then
if unit.extractsmetal then
unit.extractsmetal = unit.extractsmetal * resourceMult
end
if unit.energymake then
unit.energymake = unit.energymake * resourceMult
end
if unit.energyupkeep and unit.energyupkeep < 0 then
unit.energyupkeep = unit.energyupkeep * resourceMult
end
else
end
end
UnitDefs[targetFaction.."win"].customparams.energymultiplier = resourceMult
if targetFaction == "leg" then
UnitDefs["legeconv"].customparams.energyconv_efficiency = 0.01429 * resourceMult
UnitDefs["legadveconv"].customparams.energyconv_efficiency = 0.01724 * resourceMult
else
UnitDefs[targetFaction.."makr"].customparams.energyconv_efficiency = 0.01429 * resourceMult
UnitDefs[targetFaction.."mmkr"].customparams.energyconv_efficiency = 0.01724 * resourceMult
end