30 lines
507 B
TypeScript
30 lines
507 B
TypeScript
import { Difficulty } from "../score/difficulty";
|
|
|
|
/**
|
|
* Formats the ScoreSaber difficulty number
|
|
*
|
|
* @param diff the diffuiclity number
|
|
*/
|
|
export function getDifficultyFromScoreSaberDifficulty(diff: number): Difficulty {
|
|
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";
|
|
}
|
|
}
|
|
}
|