This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
scoresaber-reloadedv3/projects/common/src/utils/scoresaber-utils.ts
Liam ee1c33bcc9
All checks were successful
Deploy Backend / deploy (push) Successful in 3m53s
Deploy Website / deploy (push) Successful in 5m26s
oops
2024-10-16 02:39:42 +01:00

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";
}
}
}