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

Brimstone key from Superior #5942

Closed

Conversation

TastyPumPum
Copy link
Contributor

@TastyPumPum TastyPumPum commented Jul 5, 2024

Guarantees a brimstone key drop from a superior on a konar slayer task

  • I have tested all my changes thoroughly.

🚀 This description was created by Ellipsis for commit 7a446ca

Summary:

Guarantees a Brimstone key drop from a superior monster on a Konar Slayer task by adding the isUsingKonar flag and updating loot logic.

Key points:

  • Added isUsingKonar flag to MonsterActivityTaskOptions in src/lib/types/minions.ts.
  • Updated minionKillCommand in src/mahoji/lib/abstracted_commands/minionKill.ts to set isUsingKonar when on a Konar Slayer task.
  • Modified monsterTask in src/tasks/minions/monsterActivity.ts to add a Brimstone key to the loot if isUsingKonar is true and a superior monster is killed.

Generated with ❤️ by ellipsis.dev

closes: #5999

@TastyPumPum TastyPumPum marked this pull request as ready for review July 14, 2024 08:40
@TastyPumPum
Copy link
Contributor Author

@ellipsis-dev review this pr

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.

👍 Looks good to me! Reviewed everything up to 7a446ca in 20 seconds

More details
  • Looked at 61 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. src/tasks/minions/monsterActivity.ts:260
  • Draft comment:
    The implementation correctly adds a brimstone key for each superior monster killed while on a Konar task, as intended in the PR.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR description states that a brimstone key should be guaranteed from a superior monster when on a Konar task. The implementation in monsterActivity.ts correctly adds a brimstone key for each superior monster killed under these conditions. However, the logic should ensure that this only happens when a superior is actually encountered and killed, which is handled by checking newSuperiorCount before adding the key. This seems correct as per the PR's intent.

Workflow ID: wflow_UfEsNHce6i5bbKFE


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Comment on lines +184 to +185
let isUsingKonar = false;
if (isOnTask && usersTask.slayerMaster.id === 5) isUsingKonar = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to be the same as these:

usingCannon: !usingCannon ? undefined : usingCannon,
		cannonMulti: !cannonMulti ? undefined : cannonMulti,

and change the type to isUsingKonar?: true;, so its either undefined, or true.

This is just to not have unnecessary stuff in the data in the db.

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.

100% Brimstone keys from konar slayer task supperiors
2 participants