Tests if this weapon is a light weapon for the specied PC. @param pc The PlayerCharacter wielding the weapon. @return true if the weapon is light for the specified pc.
(final PlayerCharacter pc)
| 4885 | * @return true if the weapon is light for the specified pc. |
| 4886 | */ |
| 4887 | public boolean isWeaponLightForPC(final PlayerCharacter pc) |
| 4888 | { |
| 4889 | |
| 4890 | if (pc == null || !isWeapon()) |
| 4891 | { |
| 4892 | return false; |
| 4893 | } |
| 4894 | WieldCategory wc = Globals.getContext().getReferenceContext() |
| 4895 | .silentlyGetConstructedCDOMObject(WieldCategory.class, "Light"); |
| 4896 | return (wc != null) && wc.equals(getEffectiveWieldCategory(pc)); |
| 4897 | } |
| 4898 | |
| 4899 | /** |
| 4900 | * Tests if this weapon can be used in one hand by the specified PC. |
no test coverage detected