GravityTurn.StageController.HasStayingChutes C# (CSharp) Method

HasStayingChutes() public static method

public static HasStayingChutes ( int inverseStage, Vessel v ) : bool
inverseStage int
v Vessel
return bool
        public static bool HasStayingChutes(int inverseStage, Vessel v)
        {
            var chutes = v.parts.FindAll(p => p.inverseStage == inverseStage && p.IsParachute());

            for (int i = 0; i < chutes.Count; i++)
            {
                Part p = chutes[i];
                if (!p.IsDecoupledInStage(inverseStage))
                {
                    return true;
                }
            }

            return false;
        }
    }