Updated eslintrc and fixed errors in files

This commit is contained in:
2023-11-23 21:33:44 +01:00
parent 0eeb48b2dd
commit 572f53f010
6 changed files with 8 additions and 22 deletions

View File

@@ -8,7 +8,7 @@ function skywarsLevel(xp) {
exactLevel = (xp - 15000) / 10000 + 12
return exactLevel
} else {
for (i = 0; i < xps.length; i++) {
for (let i = 0; i < xps.length; i++) {
if (xp < xps[i]) {
exactLevel = i + (xp - xps[i - 1]) / (xps[i] - xps[i - 1])
return exactLevel