if (ccs.isDamaged()) {
if (ccs.isDamaged() || ccs.isBreached()) {
    public int getHitCriticals(int type, int index, int loc) {        int hits = 0;                for (int i = 0; i < getNumberOfCriticals(loc); i++) {            CriticalSlot ccs = getCritical(loc, i);                        if (ccs != null && ccs.getType() == type && ccs.getIndex() == index) {                if (ccs.isDamaged()) {                    hits++;                }            }                    }                return hits;    }