mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
Format PMS levels a bit better?
This commit is contained in:
@@ -66,16 +66,8 @@ if (require.main === module) {
|
||||
let l = Number(d.level);
|
||||
|
||||
let tierlistInfo = Number.isNaN(l) ? {} : {
|
||||
"sgl-EC": {
|
||||
value: ConvertLevel(l),
|
||||
text: ConvertLevel(l).toString(),
|
||||
individualDifference: false,
|
||||
},
|
||||
"sgl-HC": {
|
||||
value: ConvertLevel(l),
|
||||
text: ConvertLevel(l).toString(),
|
||||
individualDifference: false,
|
||||
}
|
||||
"sgl-EC": MakeTierlistStuff(l),
|
||||
"sgl-HC": MakeTierlistStuff(l),
|
||||
}
|
||||
|
||||
const chart = {
|
||||
@@ -119,6 +111,16 @@ if (require.main === module) {
|
||||
})();
|
||||
}
|
||||
|
||||
function MakeTierlistStuff(l) {
|
||||
const value = ConvertLevel(l);
|
||||
|
||||
return {
|
||||
value,
|
||||
text: value <= 50 ? "○" + value.toString() : "●" + l,
|
||||
individualDifference: false,
|
||||
}
|
||||
}
|
||||
|
||||
function ConvertLevel(i) {
|
||||
return {
|
||||
1: 46,
|
||||
|
||||
Reference in New Issue
Block a user