im starting a two part project to track the
high water mark on the numbers total produced of each unit made during battles.
possibly using something like Spring.GetTeamUnitsCounts
my aim will be to then translate this into a mod that reduces costs based on how infrequently the unit is made.. so if a unit is made 1% of all units 50% of games then it will be 1%/50% = 0.5% of original price
ill also factor in the original cost so that if the unit costs allot it is affected less since expencive units are typicaly produced less
along the way im going to need help so i concider this an open project
i hope it may also help as a feedback for balance patches