(PlayerCharacter pc, WieldCategory wCat)
| 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 |
no test coverage detected