FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Feat: KillAura DPS calculation by KMatias123 · Pull Request #200 · lambda-client/lambda · GitHub

Feat: KillAura DPS calculation - #200

Merged
emyfops merged 2 commits into
lambda-client:1.21.11from
KMatias123:1.21.11-ka-dps
Dec 21, 2025
Merged

Feat: KillAura DPS calculation#200
emyfops merged 2 commits into
lambda-client:1.21.11from
KMatias123:1.21.11-ka-dps

Conversation

Copy link
Copy Markdown
Contributor

I don't want the KillAura to always switch to the axe if I have swap on, so this fixes that.
It prefers the axe or the tool with the highest damage/hit if it is in the "Hit Damage" mode if you like the old behavior.

KMatias123 changed the title KillAura DPS calculation Feat: KillAura DPS calculation Dec 20, 2025
@Suppress("unused")
enum class DamageMode(override val displayName: String) : NamedEnum {
DPS("Damage Per Second"),
Total("Hit Damage")

emyfops Dec 21, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You could inline the check in the code inside the enum. Ex:

enum class DamageMode(override val displayName: String, val block: SafeContext.(ItemStack) -> Double) : NamedEnum {
DPS("Damage Per Second", { player.attackDamage(stack = it) * player.attackSpeed(stack = it) }),
}

to then simply sort with the block

KMatias123 requested a review from emyfops December 21, 2025 09:00
emyfops merged commit 430b463 into lambda-client:1.21.11 Dec 21, 2025
KMatias123 deleted the 1.21.11-ka-dps branch December 21, 2025 15:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL