The plan is to have two sets of stats in the code, the blank stats, sans-upgrades, and the upgraded one. Units.csv would then only have the blank stats, and everything would work wonderfully. When you change the upgrades list, the upgraded stats would be re-computed (this includes damaged upgrades), and we'd have no bugs.