public float GetRocketMaxDistance()
    {
        float totalMass   = GetTotalMass();
        float totalThrust = GetTotalThrust();
        float num         = ROCKETRY.CalculateMassWithPenalty(totalMass);

        return(Mathf.Max(0f, totalThrust - num));
    }
 private void Update()
 {
     if (mouseOver)
     {
         if ((Object)rectTransform == (Object)null)
         {
             rectTransform = graphBar.gameObject.GetComponent <RectTransform>();
         }
         Vector3 position = rectTransform.GetPosition();
         Vector2 size     = rectTransform.rect.size;
         Vector3 mousePos = KInputManager.GetMousePos();
         float   value    = mousePos.x - position.x + size.x / 2f;
         value = Mathf.Clamp(value, 0f, totalWidth);
         hoverMarker.rectTransform.SetLocalPosition(new Vector3(value, 0f, 0f));
         float num               = Mathf.Lerp(0f, maxMass, value / totalWidth);
         float totalThrust       = commandModule.rocketStats.GetTotalThrust();
         float rocketMaxDistance = commandModule.rocketStats.GetRocketMaxDistance();
         hoverTooltip.SetSimpleTooltip(UI.STARMAP.ROCKETWEIGHT.MASS + GameUtil.GetFormattedMass(num, GameUtil.TimeSlice.None, GameUtil.MetricMassFormat.Kilogram, true, "{0:0.#}") + "\n" + UI.STARMAP.ROCKETWEIGHT.MASSPENALTY + Util.FormatWholeNumber(ROCKETRY.CalculateMassWithPenalty(num)) + UI.UNITSUFFIXES.DISTANCE.KILOMETER + "\n\n" + UI.STARMAP.ROCKETWEIGHT.CURRENTMASS + GameUtil.GetFormattedMass(commandModule.rocketStats.GetTotalMass(), GameUtil.TimeSlice.None, GameUtil.MetricMassFormat.Kilogram, true, "{0:0.#}") + "\n" + UI.STARMAP.ROCKETWEIGHT.CURRENTMASSPENALTY + Util.FormatWholeNumber(totalThrust - rocketMaxDistance) + UI.UNITSUFFIXES.DISTANCE.KILOMETER);
     }
 }