public float GetTotalFuel(bool includeBoosters = false) { float num = 0f; foreach (GameObject item in AttachableBuilding.GetAttachedNetwork(commandModule.GetComponent <AttachableBuilding>())) { FuelTank component = item.GetComponent <FuelTank>(); Tag engineFuelTag = GetEngineFuelTag(); if ((Object)component != (Object)null) { num += component.GetAmountAvailable(engineFuelTag); } if (includeBoosters) { SolidBooster component2 = item.GetComponent <SolidBooster>(); if ((Object)component2 != (Object)null) { num += component2.fuelStorage.GetAmountAvailable(component2.fuelTag); } } } return(num); }