Retrieve the preferred location for a natural weapon. Will return null for non natural weapon equipment items. @param pc which PlayerCharacter has the item @param item The equipment item to be checked. @return The preferred natural equip node, or null if not applicable.
(PlayerCharacter pc, Equipment item)
| 630 | * @return The preferred natural equip node, or null if not applicable. |
| 631 | */ |
| 632 | public EquipNode getNatWeaponLoc(PlayerCharacter pc, Equipment item) |
| 633 | { |
| 634 | String locName = pc.getNaturalWeaponLocation(item); |
| 635 | if (locName != null) |
| 636 | { |
| 637 | return naturalWeaponNodes.get(locName); |
| 638 | } |
| 639 | return null; |
| 640 | } |
| 641 | |
| 642 | /** |
| 643 | * Check if the node is a valid location for the natural weapon to be equipped to. |
no test coverage detected