public static bool InCrewOfActiveFlight(this ProtoCrewMember kerbal) { Vessel vessel = FlightGlobals.ActiveVessel; if (vessel == null) { return(false); } foreach (ProtoCrewMember member in vessel.GetVesselCrew()) { if (kerbal.Equals(member)) { return(true); } } return(false); }
public override string ToString() { string result = "HALL OF FAME (" + entries.Count + " entries):\n"; foreach (HallOfFameEntry entry in entries) { string name = entry.GetName(); ProtoCrewMember kerbal = entry.GetKerbal(); if (kerbal != null) { ProtoCrewMember currentkerbal = GameUtils.GetKerbalForName(name); result = name + " - " + kerbal.Equals(currentkerbal) + " (" + (kerbal == currentkerbal) + ")\n"; } else { result = name + " - null\n"; } } return(result); }