Get the AC Check Token as an int @param pc @param eq @return AC Check Token as an int
(PlayerCharacter pc, Equipment eq)
| 383 | * @return AC Check Token as an int |
| 384 | */ |
| 385 | public static int getAcCheckTokenInt(PlayerCharacter pc, Equipment eq) |
| 386 | { |
| 387 | String acCheckVar = ControlUtilities.getControlToken(Globals.getContext(), CControl.EQACCHECK); |
| 388 | if (acCheckVar == null) |
| 389 | { |
| 390 | return eq.preFormulaAcCheck(pc); |
| 391 | } |
| 392 | return ((Number) eq.getLocalVariable(pc.getCharID(), acCheckVar)).intValue(); |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * Get the AC Mod Token |
no test coverage detected