28 lines
444 B
TypeScript
28 lines
444 B
TypeScript
|
/**
|
||
|
* Formats the ScoreSaber difficulty number
|
||
|
*
|
||
|
* @param diff the diffuiclity number
|
||
|
*/
|
||
|
export function getDifficultyFromScoreSaberDifficulty(diff: number) {
|
||
|
switch (diff) {
|
||
|
case 1: {
|
||
|
return "Easy";
|
||
|
}
|
||
|
case 3: {
|
||
|
return "Normal";
|
||
|
}
|
||
|
case 5: {
|
||
|
return "Hard";
|
||
|
}
|
||
|
case 7: {
|
||
|
return "Expert";
|
||
|
}
|
||
|
case 9: {
|
||
|
return "Expert+";
|
||
|
}
|
||
|
default: {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
}
|
||
|
}
|