Skip to content

Commit

Permalink
fix time calculations for rival wings and frontlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrilai committed Apr 1, 2023
1 parent 7fb3d1e commit 80a3b30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/frontline.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ frontline.update = function () {
const secondPlaceMatches = Math.ceil((xpToTargetRank * otherMultiplier) / 1500 + (xpToTargetRank * targetMultiplier) / 1250 + (xpToTargetRank * otherMultiplier) / 1000);
const thirdPlaceMatches = Math.ceil((xpToTargetRank * otherMultiplier) / 1500 + (xpToTargetRank * otherMultiplier) / 1250 + (xpToTargetRank * targetMultiplier) / 1000);

const firstPlaceMatchTime = Math.ceil(firstPlaceMatches * 5);
const secondPlaceMatchTime = Math.ceil(secondPlaceMatches * 5);
const thirdPlaceMatchTime = Math.ceil(thirdPlaceMatches * 5);
const firstPlaceMatchTime = Math.ceil(firstPlaceMatches * 20);
const secondPlaceMatchTime = Math.ceil(secondPlaceMatches * 20);
const thirdPlaceMatchTime = Math.ceil(thirdPlaceMatches * 20);
const firstPlaceQueueTime = Math.ceil(firstPlaceMatches * 3);
const secondPlaceQueueTime = Math.ceil(secondPlaceMatches * 3);
const thirdPlaceQueueTime = Math.ceil(thirdPlaceMatches * 3);
Expand Down
2 changes: 1 addition & 1 deletion js/rivalWings.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ rivalWings.update = function () {

const totalMatches = Math.ceil(victoryMatches + defeatMatches);

const matchTime = Math.ceil(totalMatches * 5);
const matchTime = Math.ceil(totalMatches * 15);
const queueTime = Math.ceil(totalMatches * 3);
const totalTime = matchTime + queueTime;

Expand Down

0 comments on commit 80a3b30

Please # to comment.