UNPKG

rg-stats

Version:

A library for calculating various rhythm game stats.

36 lines (35 loc) 1.69 kB
import { integer } from "../util/types"; /** * Calculates WACCAs rate for a score. * This is accurate as of Reverse. * * @param score - The score to calculate the rate for. * @param internalChartLevel - The internal decimal level of the chart the score was achieved on. */ export declare function calculate(score: integer, internalChartLevel: number): number; /** * Calculates WACCAs rate for a score. * This is accurate for WACCA Plus as of the August 2025 update. * * @param score - The score to calculate the rate for. * @param internalChartLevel - The internal decimal level of the chart the score was achieved on. */ export declare function calculatePlus(score: integer, internalChartLevel: number): number; /** * Given a WACCA rate and a chart level, return the minimum score necessary to get * that rate. * This is accurate as of Reverse. * * @param rate - The rate to inverse * @param internalChartLevel - The internal decimal level of the chart the rate was on. */ export declare function inverse(rate: number, internalChartLevel: number): 0 | 900000 | 990000 | 980000 | 970000 | 960000 | 950000 | 940000 | 920000 | 850000; /** * Given a WACCA rate and a chart level, return the minimum score necessary to get * that rate. * This is accurate for WACCA Plus as of the August 2025 update. * * @param rate - The rate to inverse * @param internalChartLevel - The internal decimal level of the chart the rate was on. */ export declare function inversePlus(rate: number, internalChartLevel: number): 0 | 975000 | 900000 | 990000 | 980000 | 970000 | 960000 | 950000 | 940000 | 920000 | 850000 | 995000 | 994000 | 993000 | 992000 | 991000 | 985000 | 965000 | 955000;