@Override public Float resolve(PlayerCharacter pc) { if (ControlUtilities.hasControlToken(Globals.getContext(), "EQACCHECK")) { Logging.errorPrint( originalText + " term is deprecated (does not function)" + " when EQACCHECK CodeControl is used"); } int maxCheck = 0; for (Equipment eq : pc.getEquipmentOfType("Armor", 1)) { maxCheck += eq.preFormulaAcCheck(pc); } return (float) maxCheck; }
@Override public Float resolve(PlayerCharacter pc) { if (ControlUtilities.hasControlToken(Globals.getContext(), CControl.EQACCHECK)) { Logging.errorPrint( originalText + " term is deprecated (does not function)" + " when EQACCHECK CodeControl is used"); } if ("".equals(eqKey)) { return 0.0f; } else { final Equipment eq = Globals.getContext() .getReferenceContext() .silentlyGetConstructedCDOMObject(Equipment.class, eqKey); if (eq == null || pc.isProficientWith(eq)) { return 0.0f; } else { return (float) eq.preFormulaAcCheck(pc); } } }