MCPcopy Create free account
hub / github.com/PCGen/pcgen / isWeaponTwoHanded

Method isWeaponTwoHanded

code/src/java/pcgen/core/Equipment.java:4961–4971  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 5

checkWieldMethod · 0.80
getDamageTokenMethod · 0.80
getTotalHitTokenMethod · 0.80
getToHitMethod · 0.80
getDamageMethod · 0.80

Calls 3

isWeaponMethod · 0.95
getHandsRequiredMethod · 0.95

Tested by

no test coverage detected