Ejemplo n.º 1
0
    public void CompleteRecovery()
    {
        Vessel vessel = (!Ref.mapView) ? Ref.mainVessel : Ref.selectedVessel;
        bool   flag   = vessel == Ref.mainVessel;

        if (vessel == null)
        {
            return;
        }
        if (!vessel.OnSurface)
        {
            return;
        }
        this.aaa(vessel);
        vessel.DestroyVessel();
        if (flag)
        {
            this.ExitGameScene();
        }
        else
        {
            this.CancelRecovery();
        }
        this.UpdateVesselButtons();
    }
Ejemplo n.º 2
0
    public void CompleteRecovery()
    {
        Vessel vessel = (!Ref.mapView) ? Ref.mainVessel : Ref.selectedVessel;
        bool   flag   = vessel == Ref.mainVessel;

        if (vessel == null)
        {
            return;
        }
        if (!vessel.OnSurface)
        {
            return;
        }
        if (flag)
        {
            if (vessel.vesselAchievements.Contains("Reached low Earth orbit.") && !Saving.LoadSetting(Saving.SettingKey.askedToRate1) && !Saving.LoadSetting(Saving.SettingKey.hasRated))
            {
                Saving.SaveSetting(Saving.SettingKey.askedToRate1, true);
                this.AskRate();
                this.CancelRecovery();
                return;
            }
            if (vessel.vesselAchievements.Contains("Landed on Moon surface.") && !Saving.LoadSetting(Saving.SettingKey.askedToRate2) && !Saving.LoadSetting(Saving.SettingKey.hasRated))
            {
                Saving.SaveSetting(Saving.SettingKey.askedToRate2, true);
                this.AskRate();
                this.CancelRecovery();
                return;
            }
            vessel.DestroyVessel();
            this.ExitGameScene();
        }
        else
        {
            vessel.DestroyVessel();
            this.CancelRecovery();
            this.UpdateVesselButtons();
        }
    }
Ejemplo n.º 3
0
 public void MergeVessel(Vessel otherVessel)
 {
     if (otherVessel == this)
     {
         return;
     }
     if (otherVessel == Ref.mainVessel)
     {
         Ref.mainVessel = this;
     }
     if (otherVessel == Ref.selectedVessel)
     {
         Ref.selectedVessel = this;
     }
     this.partsManager.parts.AddRange(otherVessel.partsManager.parts);
     this.partsManager.GetConnectedParts(this.partsManager.parts[0], this);
     for (int i = 0; i < otherVessel.vesselAchievements.Count; i++)
     {
         this.AddArchivment(otherVessel.vesselAchievements[i]);
     }
     otherVessel.DestroyVessel();
 }