From d9b90e2a224bc0a692316197b56e0daa4433ce7e Mon Sep 17 00:00:00 2001 From: Nathaniel Moschkin Date: Tue, 27 Feb 2024 17:13:35 -0500 Subject: [PATCH] bug --- src/utils/beholdcalc.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/utils/beholdcalc.ts b/src/utils/beholdcalc.ts index 0296343..ef74a98 100644 --- a/src/utils/beholdcalc.ts +++ b/src/utils/beholdcalc.ts @@ -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++) {