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

Method getACMod

code/src/java/pcgen/core/Equipment.java:5103–5113  ·  view source on GitHub ↗

Gets the acMod attribute of the Equipment object @param aPC The PC that has the Equipment @return The acMod value

(final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

5101 * @return The acMod value
5102 */
5103 public Integer getACMod(final PlayerCharacter aPC)
5104 {
5105 String acMod = aPC.getControl(CControl.EQACMOD);
5106 if (acMod != null)
5107 {
5108 Object o = aPC.getLocal(this, acMod);
5109 return ((Number) o).intValue();
5110 }
5111 //TODO This should be documented
5112 return (int) bonusTo(aPC, "EQMARMOR", "AC", true) + (int) bonusTo(aPC, "COMBAT", "AC", true);
5113 }
5114
5115 //
5116 // Weapon Support

Callers 8

getAcModTokenMethod · 0.80
getAcModTokenMethod · 0.80
getAcModTokenMethod · 0.80
getEquipmentHtmlInfoMethod · 0.80
modToACFromEquipmentMethod · 0.80
createItemMethod · 0.80
getAcModTokenIntMethod · 0.80

Calls 4

bonusToMethod · 0.95
getControlMethod · 0.80
getLocalMethod · 0.80
intValueMethod · 0.80

Tested by

no test coverage detected