Tests if this weapon requires two hands to use. @param pc - The PlayerCharacter wielding the weapon. @return true if the weapon is two-handed for the specified pc
(PlayerCharacter pc)
| 4959 | * @return true if the weapon is two-handed for the specified pc |
| 4960 | */ |
| 4961 | public boolean isWeaponTwoHanded(PlayerCharacter pc) |
| 4962 | { |
| 4963 | |
| 4964 | if (pc == null || !isWeapon()) |
| 4965 | { |
| 4966 | return false; |
| 4967 | } |
| 4968 | |
| 4969 | WieldCategory wieldCategory = getEffectiveWieldCategory(pc); |
| 4970 | return wieldCategory != null && getHandsRequired(pc, wieldCategory) == 2; |
| 4971 | } |
| 4972 | |
| 4973 | /** |
| 4974 | * Gets the minimum WieldCategory this weapon can be used at. Accounts for |
no test coverage detected