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

30 lines
507 B
TypeScript
Raw Normal View History

import { Difficulty } from "../score/difficulty";
2024-09-11 23:20:50 +00:00
/**
* Formats the ScoreSaber difficulty number
*
* @param diff the diffuiclity number
*/
export function getDifficultyFromScoreSaberDifficulty(diff: number): Difficulty {
2024-09-11 23:20:50 +00:00
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";
}
}
}