Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Feb 27, 2024
1 parent 39c3791 commit d9b90e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/utils/beholdcalc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,16 @@ export async function calculateBehold(message: Message, beholdResult: any, fromC
let entry = filter[0];
beholdResult["crew" + (i + 1).toString()].stars = entry.rarity;

if (entry.rarity !== undefined && entry.rarity < bcrew[i].max_rarity) {
if (entry.rarity !== undefined && entry.rarity < bc.max_rarity) {
entry.rarity++;
beholdResult["crew" + (i + 1).toString()].stars++;
found[i] = entry.rarity;
}

i++;
if (i >= 3) break;
}
else {
break;
}

i++;
if (i >= 3) break;
}

for (let i = 0; i < 3; i++) {
Expand Down

0 comments on commit d9b90e2

Please sign in to comment.