Gets the acMod attribute of the Equipment object @param aPC The PC that has the Equipment @return The acMod value
(final PlayerCharacter aPC)
| 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 |
no test coverage detected