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

Method getHandsRequired

code/src/java/pcgen/core/Equipment.java:4917–4928  ·  view source on GitHub ↗
(PlayerCharacter pc, WieldCategory wCat)

Source from the content-addressed store, hash-verified

4915 }
4916
4917 private int getHandsRequired(PlayerCharacter pc, WieldCategory wCat)
4918 {
4919 String handsControl = pc.getControl(CControl.WEAPONHANDS);
4920 if (handsControl != null)
4921 {
4922 return ((Number) getLocalVariable(pc.getCharID(), handsControl)).intValue();
4923 }
4924 else
4925 {
4926 return wCat.getHandsRequired();
4927 }
4928 }
4929
4930 /**
4931 * Tests if the weapon is either too large OR too small for the specified PC

Callers 4

isWeaponOneHandedMethod · 0.95
isWeaponOutsizedForPCMethod · 0.95
isWeaponTwoHandedMethod · 0.95

Calls 4

getLocalVariableMethod · 0.95
getControlMethod · 0.80
intValueMethod · 0.80
getCharIDMethod · 0.65

Tested by

no test coverage detected