Exemplo n.º 1
0
 public static double CalculateManiaAccuracy(OsuJsonScorable item)
 {
     return(100.0 * (6 * item.countgeki + 6 * item.count300 + 4 * item.countkatu + 2 * item.count100 +
                     item.count50) /
            (6 * (item.count50 + item.count100 + item.count300 + item.countmiss + item.countgeki +
                  item.countkatu)));
 }
Exemplo n.º 2
0
        public static void GetCalculatedAccuracy(OsuJsonScorable item, int mode)
        {
            switch (mode)
            {
            case 0:
                item.calculated_accuracy = CalculateOsuAccuracy(item);
                break;

            case 1:
                item.calculated_accuracy = CalculateTaikoAccuracy(item);
                break;

            case 2:
                item.calculated_accuracy = CalculateCatchAccuracy(item);
                break;

            case 3:
                item.calculated_accuracy = CalculateManiaAccuracy(item);
                break;
            }
        }
Exemplo n.º 3
0
 public static double CalculateCatchAccuracy(OsuJsonScorable item)
 {
     return(100.0 * (item.count300 + item.count100 + item.count50) /
            (item.count300 + item.count100 + item.count50 + item.countkatu +
             item.countmiss));
 }
Exemplo n.º 4
0
 public static double CalculateTaikoAccuracy(OsuJsonScorable item)
 {
     return(100.0 * (2 * item.count300 + item.count100) /
            (2 * (item.count300 + item.count100 + item.countmiss)));
 }
Exemplo n.º 5
0
 public static double CalculateOsuAccuracy(OsuJsonScorable item)
 {
     return(100.0 * (6 * item.count300 + 2 * item.count100 + item.count50) /
            (6 * (item.count50 + item.count100 + item.count300 + item.countmiss)));
 }