public void AddSexualChemistryScore(ESexualChemistryScore score, int factor = 1) { for (int i = 0; i < factor; i++) { SexualChemistryScores.Add(score); } }
public void CalculateAverages() { GetAverageScoreAsPercentage(); HarmonyScore = GetAverageScore(HarmonyScores); ConflictScore = GetAverageScore(ConflictScores); SupportScore = GetAverageScore(SupportScores); MutualUnderstandingScore = GetAverageScore(MutualUnderstandingScores); ComplementarityScore = GetAverageScore(ComplementarityScores); SexualChemistryScore = (ESexualChemistryScore)Math.Round(SexualChemistryScores.Average(e => (int)e), MidpointRounding.AwayFromZero); SparkScore = GetAverageScore(SparkScores); LearningPotentialScore = GetAverageScore(LearningPotentialScores); OverallScore = GetAverageScore(new List <ECompatibilityScore> { HarmonyScore, SupportScore, MutualUnderstandingScore, (int)ECompatibilityScore.ExtremelyHigh - ConflictScore, ComplementarityScore, (ECompatibilityScore)SexualChemistryScore }); }