Upgrades: Resouce Buildings base on highest production, Offense Repair Buildings Based on Highest time, CY_CC_DHQ_DFa try to upgrade + 3 of the base.Defense and Offense Upgrade now, based on the second best unit if Offrt buildings are place and keeps the same pattern based on (max unit health / powercost).
Gryphon v1.4.0 : Translation, corrections, debugging
Dbendure v1.3.3 : He used Flunik tools skeleton
KRS_L's can upgrade function -edited-
RobertT helped sort out the logic idea unknowingly
Hexist helped Dbendure figure out what type of equation to use.