for(int i=0;i<this.getNumberOfCriticals(loc);i++) {
int numberOfCriticals = this.getNumberOfCriticals(loc); for(int i=0;i<numberOfCriticals;i++) {
    public int getCritsHit(int loc) {        int count=0;        for(int i=0;i<this.getNumberOfCriticals(loc);i++) {            CriticalSlot ccs = getCritical(loc, i);            if ( ccs.isDamaged() || ccs.isBreached() ) {                count++;            }        }        return count;    }