public static void Postfix(TyreInfoRollover __instance, TyreSet inTyreSet, Circuit inCircuit)
            {
                float num  = TyreSet.CalculateLapRangeOfTyre(inTyreSet, GameUtility.MilesToMeters(inCircuit.trackLengthMiles)) * inTyreSet.GetCondition();
                int   num2 = Mathf.FloorToInt(num);
                int   num3 = num2 - 2;

                num3 = ((num3 > 0 || num2 <= 1) ? num3 : 1);
                if (num3 > 0)
                {
                    __instance.estimatedLapsLabel.SetText(num3.ToString() + " - " + num2.ToString() + " (" + Mathf.FloorToInt((num - 2f) / 4f * 3f) + ")");
                }
            }
 public static bool Prefix(SessionStrategy __instance, SessionDetails.SessionType inSessionType, ref TyreSet __result)
 {
     if (inSessionType == SessionDetails.SessionType.Practice)
     {
         __result = __instance.GetTyreInBestCondition(SessionStrategy.TyreOption.First, null);
         return(false);
     }
     return(true);
 }