Ejemplo n.º 1
0
 public void addPart(Part part)
 {
     if (ELSettings.KIS_Present)
     {
         KIS.KISWrapper.GetResources(part, container.resources);
     }
     ELRecipeDatabase.ProcessPart(part, hullResoures.resources);
     resources.AddPart(part);
     mass += part.mass;
 }
Ejemplo n.º 2
0
        public void addPart(Part part)
        {
            double resMass = 0;

            if (ELSettings.KIS_Present)
            {
                // KIS container mass includes resources in contained parts
                resMass = KIS.KISWrapper.GetResources(part, container.resources);
            }
            ELRecipeDatabase.ProcessPart(part, hullResoures.resources, resMass);
            resources.AddPart(part);
            mass += part.mass - resMass;
        }