Skip to content

Commit

Permalink
Ignore used tokens on artifact EXP award
Browse files Browse the repository at this point in the history
Instead, award EXP for the artifact based on the player's base rank and how many rank tokens are available rather than used.
  • Loading branch information
bls1999 committed Dec 9, 2020
1 parent 3905d2f commit f042362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiplayer_server/rooms/Game.php
Expand Up @@ -818,7 +818,7 @@ public function finishRace($player)
$result = save_finder($player);
if ($result) {
$max_artifact_bonus = 50000;
$artifact_bonus = round($max_artifact_bonus * $player->active_rank / 60);
$artifact_bonus = round($max_artifact_bonus * ($player->rank + $player->rt_available) / 60);
if ($artifact_bonus > $max_artifact_bonus) {
$artifact_bonus = $max_artifact_bonus;
}
Expand Down

0 comments on commit f042362

Please sign in to comment.