Format PMS levels a bit better?

This commit is contained in:
zkldi
2022-02-09 03:17:08 +00:00
parent fadd086183
commit 1b29da29de
2 changed files with 37460 additions and 37458 deletions
@@ -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,