Tune server ranking (again)

This commit is contained in:
sfan5 2018-11-11 23:16:43 +01:00 committed by GitHub
parent e7c4d2c20a
commit 6f51e2f00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,10 +331,10 @@ class ServerList:
points = server["clients"] / 4
# Penalize highly loaded servers to improve player distribution.
# Note: This doesn't just make more than 90% of max players stop
# Note: This doesn't just make more than 80% of max players stop
# increasing your points, it can actually reduce your points
# if you have guests.
cap = int(server["clients_max"] * 0.90)
cap = int(server["clients_max"] * 0.80)
if server["clients"] > cap:
points -= server["clients"] - cap