rendered paste body# Copyright © 2006 Gas Powered Games, Inc. All rights reserved.
#
# Author: Matt Mahon
#
# Description:
# Sample Mod to double economic output of econ units.
#
#this function is called already in game. This gives us a hook to screw the
#blueprint values for the units
function ModBlueprints(all_bps)
local econScale = 2.0
#loop through the blueprints and adjust as desired.
for id,bp in all_bps.Unit do
if bp.Economy.ProductionPerSecondMass then
bp.Economy.ProductionPerSecondMass = bp.Economy.ProductionPerSecondMass * econScale
end
if bp.Economy.ProductionPerSecondEnergy then
bp.Economy.ProductionPerSecondEnergy = bp.Economy.ProductionPerSecondEnergy * econScale
end
end
end