Skip to content

Commit

Permalink
feat(AutoWeapon): none weapon type (#5166)
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 authored Jan 2, 2025
1 parent 5125a83 commit 05c6337
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import net.ccbluex.liquidbounce.event.events.AttackEntityEvent
import net.ccbluex.liquidbounce.event.sequenceHandler
import net.ccbluex.liquidbounce.features.module.Category
import net.ccbluex.liquidbounce.features.module.ClientModule
import net.ccbluex.liquidbounce.features.module.modules.combat.ModuleAutoWeapon.againstShield
import net.ccbluex.liquidbounce.features.module.modules.combat.ModuleAutoWeapon.prepare
import net.ccbluex.liquidbounce.features.module.modules.player.invcleaner.HotbarItemSlot
import net.ccbluex.liquidbounce.features.module.modules.player.invcleaner.ItemCategorization
import net.ccbluex.liquidbounce.features.module.modules.player.invcleaner.items.WeaponItemFacet
Expand Down Expand Up @@ -58,7 +60,13 @@ object ModuleAutoWeapon : ClientModule("AutoWeapon", Category.COMBAT) {
): NamedChoice {
ANY("Any", { true }),
SWORD("Sword", { it.itemStack.item is SwordItem }),
AXE("Axe", { it.itemStack.item is AxeItem })
AXE("Axe", { it.itemStack.item is AxeItem }),

/**
* Do not prefer any weapon type, this is useful to only
* use the [againstShield] weapon type.
*/
NONE("None", { false })
}

private val prepare by boolean("Prepare", true)
Expand Down

2 comments on commit 05c6337

@superblaubeere27
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not add a toggleable configurable PreferOtherAgainstShield and then add a choose setting PreferredAgainstShield

@1zun4
Copy link
Member Author

@1zun4 1zun4 commented on 05c6337 Jan 2, 2025

Choose a reason for hiding this comment

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

No. This is simple and straightforward.

Please sign in to comment.