Skip to content
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

Merged
merged 12 commits into from
Jul 2, 2024
Merged

Colosseum #5922

merged 12 commits into from
Jul 2, 2024

Conversation

gc
Copy link
Collaborator

@gc gc commented Jun 14, 2024

Description:

Changes:

Other checks:

  • I have tested all my changes thoroughly.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 8 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.

console.log(`Min: ${finishAttemptAmounts[0]}, Max: ${finishAttemptAmounts[finishAttemptAmounts.length - 1]}`);
}

simulateColosseumRuns();
Copy link
Contributor

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.

ellipsis-dev[bot]

This comment was marked as resolved.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 in 1 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)) {
Copy link
Contributor

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.

@gc gc merged commit 1a63445 into master Jul 2, 2024
5 checks passed
@gc gc deleted the colosseum branch July 2, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant