Skip to content

Commit

Permalink
revert next reward
Browse files Browse the repository at this point in the history
  • Loading branch information
GDjkhp committed Aug 4, 2024
1 parent 5001691 commit 1fec7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meeseeks-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function segs(player, barCustom, nextLevel) {

roleRewards.forEach((reward, index) => {
if (player.level >= reward.rank) {
const nextReward = roleRewards[index + 1];
const nextReward = roleRewards[index + 1] || { rank: player.level + 1 };
const segmentXP = getTotalXP(Math.min(player.level, nextReward.rank)) - getTotalXP(reward.rank);
const segmentPercentage = (segmentXP / getTotalXP(nextLevel)) * 100;

Expand Down

0 comments on commit 1fec7bf

Please sign in to comment.