Esempio n. 1
0
 public AudicaScore(string songID, int score, float maxScorePercent, KataConfig.Difficulty difficulty, int combo, int maxCombo)
 {
     this.songID           = songID;
     this.score            = score;
     this.maxScorePercent  = maxScorePercent;
     this.difficultyString = difficulty.ToString("g");
     this.combo            = combo;
     this.maxCombo         = maxCombo;
     date    = DateTime.Now;
     version = 4;
 }
Esempio n. 2
0
 private static void Postfix(SongPlayHistory __instance, string songID, int score, KataConfig.Difficulty difficulty, float percent, bool fullCombo, bool noFail)
 {
     if (counter % 2 == 0)
     {
         MelonLogger.Msg("Recorded new score!");
         if (noFail)
         {
             return;
         }
         if (percent < 30f)
         {
             return;
         }
         float maxScorePercent = (float)score / (float)StarThresholds.I.GetMaxRawScore(songID, difficulty);
         DifficultyCalculator.CachedCalculation difficultyRating = DifficultyCalculator.GetRating(songID, difficulty.ToString());
         AddScore(songID, score, maxScorePercent, difficultyRating.value, ScoreKeeper.I.mStreak, ScoreKeeper.I.mMaxStreak, difficulty);
     }
     counter++;
 }