Browse Source

Ajoute plus de niveaux. 10 niveaux au total.

master
sys4 1 year ago
parent
commit
2ce4efa2cd
1 changed files with 13 additions and 5 deletions
  1. +13
    -5
      init.lua

+ 13
- 5
init.lua View File

@@ -35,18 +35,26 @@ function toolranks.create_description(name, uses, level)
end

function toolranks.get_level(uses)
if uses <= 200 then
if uses <= 250 then
return 1
elseif uses < 400 then
elseif uses < 500 then
return 2
elseif uses < 1000 then
return 3
elseif uses < 2000 then
elseif uses < 2500 then
return 4
elseif uses < 3200 then
elseif uses < 5000 then
return 5
elseif uses < 10000 then
return 6
elseif uses < 25000 then
return 7
elseif uses < 50000 then
return 8
elseif uses < 100000 then
return 9
else
return 6
return 10
end
end



Loading…
Cancel
Save