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

Method getNatWeaponLoc

code/src/java/pcgen/core/character/EquipSet.java:632–640  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

canEquipMethod · 0.95
getNaturalWeaponLocMethod · 0.80

Calls 2

getMethod · 0.65

Tested by

no test coverage detected