fix volforce rating
This commit is contained in:
parent
54a901bbd1
commit
4087537617
@ -51,7 +51,7 @@ class LeaderboardGlobalView(TemplateView):
|
|||||||
clears=Count("bloonsa_level_scores", filter=Q(bloonsa_level_scores__clear=True)),
|
clears=Count("bloonsa_level_scores", filter=Q(bloonsa_level_scores__clear=True)),
|
||||||
golds=Count("bloonsa_level_scores", filter=Q(bloonsa_level_scores__dart_glitch_ever=True))
|
golds=Count("bloonsa_level_scores", filter=Q(bloonsa_level_scores__dart_glitch_ever=True))
|
||||||
).annotate(
|
).annotate(
|
||||||
volforce=F("clears") + F("golds")
|
volforce=F("clears") + (F("golds") * 0.5)
|
||||||
).order_by("-volforce")[:10]
|
).order_by("-volforce")[:10]
|
||||||
|
|
||||||
r = render(request, "bloonsa_game/modules/leaderboard_global.html",
|
r = render(request, "bloonsa_game/modules/leaderboard_global.html",
|
||||||
|
|||||||
@ -63,8 +63,8 @@ class Player(models.Model):
|
|||||||
beaten_levels = self.bloonsa_levels_beaten_count
|
beaten_levels = self.bloonsa_levels_beaten_count
|
||||||
gold_levels = self.bloonsa_dart_glitch_count
|
gold_levels = self.bloonsa_dart_glitch_count
|
||||||
|
|
||||||
estimated_limit = total_levels + ((total_levels / 100) * 20)
|
estimated_limit = total_levels + ((total_levels / 100) * 25)
|
||||||
estimated_max_rank = 40.00
|
estimated_max_rank = 90.00
|
||||||
player_score = beaten_levels + gold_levels
|
player_score = beaten_levels + gold_levels
|
||||||
player_volforce = player_score * (estimated_max_rank / estimated_limit)
|
player_volforce = player_score * (estimated_max_rank / estimated_limit)
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ class Player(models.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def bloonsa_rank(self):
|
def bloonsa_rank(self):
|
||||||
return math.floor(float(self.bloonsa_volforce_rating) / 4) + 1
|
return math.floor(float(self.bloonsa_volforce_rating) / 9) + 1
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user