ranking formula
This commit is contained in:
+1
-1
@@ -536,7 +536,7 @@ function dostat(profind, rank) {
|
||||
rank = 0
|
||||
if(player["expense"] > 0) {
|
||||
profind = (player["cash"]-1000) / player["expense"]
|
||||
rank = int(log(1 + profind) / log(2)) # log base 2
|
||||
if(profind > 1) rank = int(log(profind) / log(2)) + 1 # log base 2
|
||||
if(rank < 0) rank = 0
|
||||
if(rank > 8) rank = 8
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user