From 05c63370a0a899b0cdbe2ff6def7ee644e5cb3d2 Mon Sep 17 00:00:00 2001 From: 1zuna <1zuna@ccbluex.net> Date: Thu, 2 Jan 2025 19:55:42 +0100 Subject: [PATCH] feat(AutoWeapon): none weapon type (#5166) --- .../features/module/modules/combat/ModuleAutoWeapon.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleAutoWeapon.kt b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleAutoWeapon.kt index ecdf50baad8..aab87b9e5f7 100644 --- a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleAutoWeapon.kt +++ b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/combat/ModuleAutoWeapon.kt @@ -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 @@ -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)