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

Method getAcCheckTokenInt

code/src/java/pcgen/io/exporttoken/EqToken.java:385–393  ·  view source on GitHub ↗

Get the AC Check Token as an int @param pc @param eq @return AC Check Token as an int

(PlayerCharacter pc, Equipment eq)

Source from the content-addressed store, hash-verified

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

Callers 9

getTokenMethod · 0.95
getTokenMethod · 0.95
getTokenMethod · 0.95
writeArmorPropertyMethod · 0.95
getEquipmentHtmlInfoMethod · 0.95
calculateMaxOldMethod · 0.95
processOldAcCheckMethod · 0.95
getAcCheckTokenMethod · 0.95

Calls 6

getControlTokenMethod · 0.95
getContextMethod · 0.95
preFormulaAcCheckMethod · 0.80
intValueMethod · 0.80
getCharIDMethod · 0.65
getLocalVariableMethod · 0.45

Tested by

no test coverage detected