| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…ult, kept old behavior as another mode.
| @Suppress("unused") | ||
| enum class DamageMode(override val displayName: String) : NamedEnum { | ||
| DPS("Damage Per Second"), | ||
| Total("Hit Damage") |
There was a problem hiding this comment.
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
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.