Removed var for let

This commit is contained in:
2023-11-22 17:13:39 +01:00
parent 6ba7d5251d
commit d4c3ca0611
12 changed files with 94 additions and 71 deletions

View File

@@ -2,7 +2,7 @@
Code used from the slothpixel project https://github.com/slothpixel/core
*/
function skywarsLevel(xp) {
var xps = [0, 20, 70, 150, 250, 500, 1000, 2000, 3500, 6000, 10000, 15000];
let xps = [0, 20, 70, 150, 250, 500, 1000, 2000, 3500, 6000, 10000, 15000];
let exactLevel = 0
if (xp >= 15000) {
exactLevel = (xp - 15000) / 10000 + 12;