Exemplo n.º 1
0
        double TrainingTime(KerbalHealthStatus khs, List <ModuleKerbalHealth> parts)
        {
            double c = 0;

            foreach (ModuleKerbalHealth mkh in parts)
            {
                c += (Core.TrainingCap - khs.TrainingLevelForPart(mkh.id)) * khs.GetPartTrainingComplexity(mkh);
            }
            return(c / khs.TrainingPerDay * KSPUtil.dateTimeFormatter.Day);
        }
Exemplo n.º 2
0
 double TrainingTime(KerbalHealthStatus khs, List <ModuleKerbalHealth> modules) =>
 modules.Sum(mkh => (Core.TrainingCap - khs.TrainingLevelForPart(mkh.id)) * khs.GetPartTrainingComplexity(mkh)) / khs.TrainingPerDay * KSPUtil.dateTimeFormatter.Day;