public static float GetMechArmorPointFactor(this MechDef m) { float t = 0; float _ = 0; MechStatisticsRules.CalculateTonnage(m, ref t, ref _); t -= m.Chassis.InitialTonnage; foreach (MechComponentRef i in m.Inventory) { t -= i.Def.Tonnage; } float arm = m.GetMechArmor(); return(t / arm); }