Esempio n. 1
0
 public void Start()
 {
     if (HighLogic.LoadedSceneIsFlight)
     {
         foreach (Part mypart in this.vessel.parts)
         {
             if (mypart.Resources.Contains("CompressedWater"))
             {
                 if (rescount == 0)
                 {
                     Part1 = mypart;
                 }
                 if (rescount == 1)
                 {
                     Part2 = mypart;
                 }
                 rescount++;
             }
         }
         MPLog.Writelog("[Maritime Pack] Compressed Water Found: " + rescount);
         id           = MPFunctions.GetResourceID(Part1, "CompressedWater");
         batid        = MPFunctions.GetResourceID(Part1, "ElectricCharge");
         vesselvolume = MPFunctions.GetVolume(this.vessel);
     }
 }