Skip to content

Commit

Permalink
a fix after i levelled up to 70 in gds
Browse files Browse the repository at this point in the history
  • Loading branch information
GDjkhp committed Aug 3, 2024
1 parent d481ff4 commit 5001691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meeseeks-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function segs(player, barCustom, nextLevel) {

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

if (segmentPercentage > 0) {
Expand Down

0 comments on commit 5001691

Please sign in to comment.