Exemple #1
0
 protected void OnVesselSituationChange(GameEvents.HostedFromToAction <Vessel, Vessel.Situations> vs)
 {
     if (vs.to == Vessel.Situations.LANDED || vs.to == Vessel.Situations.SPLASHED)
     {
         if (vs.from == Vessel.Situations.FLYING)
         {
             if (vs.host.mainBody.isHomeWorld && vs.host.GetCrewCount() > 0)
             {
                 VesselTripLog vesselTripLog = VesselTripLog.FromVessel(vs.host);
                 if (vesselTripLog.Log.HasEntry(FlightLog.EntryType.Orbit, bodyName))
                 {
                     base.SetComplete();
                 }
             }
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Whether this vessel meets the parameter condition.
 /// </summary>
 /// <param name="vessel">The vessel to check</param>
 /// <returns>Whether the vessel meets the condition</returns>
 protected override bool VesselMeetsCondition(Vessel vessel)
 {
     return(VesselTripLog.FromVessel(vessel).Log.HasEntry(entryType, destination.name));
 }