-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Colosseum #5922
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to 09c72a3 in 1 minute and 14 seconds
More details
- Looked at
885
lines of code in8
files - Skipped
1
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_vUF6a4BVeWX738Qs
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
src/lib/colosseum.ts
Outdated
console.log(`Min: ${finishAttemptAmounts[0]}, Max: ${finishAttemptAmounts[finishAttemptAmounts.length - 1]}`); | ||
} | ||
|
||
simulateColosseumRuns(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider wrapping the simulateColosseumRuns
function call in a specific function or condition to prevent unintended executions when the module is imported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on e39656e in 33 seconds
More details
- Looked at
36
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_rND8CdXkkg2WrvIT
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
const itemsTheyHave = sunfireItems.filter(id => user.cl.has(id)); | ||
if (missingItems.length > 0) { | ||
for (const item of sunfireItems) { | ||
if (loot.has(item) && itemsTheyHave.includes(item)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic for replacing items in the loot might unintentionally replace an item with itself, as randArrItem(missingItems)
could select the same item being removed. Consider filtering out the current item from missingItems
before selecting a random item to ensure a different item is chosen.
Description:
Changes:
Other checks: