UNPKG

rg-stats

Version:

A library for calculating various rhythm game stats.

11 lines (10 loc) 585 B
export declare type MaimaiDXLamps = "FAILED" | "CLEAR" | "FULL COMBO" | "FULL COMBO+" | "ALL PERFECT" | "ALL PERFECT+"; /** * Calculate maimai DX Splash+ (and newer) rate for a score. * * @param score - The score to calculate the rate for. * @param internalChartLevel - The internal decimal level of the chart the score was achieved on. * @param lamp - The lamp for this score. Since maimai DX CiRCLE, there is a 1 rating bonus * for ALL PERFECT/ALL PERFECT+ scores. */ export declare function calculate(score: number, internalChartLevel: number, lamp?: MaimaiDXLamps): number;