public void ResetStats() { for (int x = 0; x < Judgements.Count(); x++) { Judgements[x] = 0; } Score = 0; Hits = 0; MaxHits = 0; TotalHits = 0; Streak = 0; MaxStreak = 0; Momentum = GetStartingMomentum(); GrooveMomentum = 1.0; PeakGrooveMomentum = 1.0; Life = this.GetMaxLife() / 2; KO = false; IsBlazing = false; PlayTime = 0; _lifeHistory.Clear(); _scoreHistory.Clear(); _levelHistory.Clear(); _gmHistory.Clear(); NextCPUJudgement = BeatlineNoteJudgement.Count; }
public void OnComplete() { foreach (NoteGrade grade in Enum.GetValues(typeof(NoteGrade))) { if (grade == NoteGrade.None) { continue; } gradeCounts[grade] = Judgements.Count(it => it.Value.Grade == grade); } }
public void UpdateToProfile() { if (Profile == null) { return; } for (int x = 0; x < Judgements.Count(); x++) { Profile.JudgementCounts[x] += Judgements[x]; } Profile.TotalHits += TotalHits; Profile.TotalPlayTime += PlayTime; Profile.MostHitsEver = Math.Max(Profile.MostHitsEver, (int)MaxHits); Profile.MostStreakEver = Math.Max(Profile.MostStreakEver, MaxStreak); Profile.EXP += AwardXP(); }