if (slot.getType()==CriticalSlot.TYPE_EQUIPMENT)
} else if (slot.getType()==CriticalSlot.TYPE_EQUIPMENT)
    public int countCriticalSlotsFromEquipInLocation(Entity entity,            int eNum, int location)    {        int count = 0;        for(int slots=0; slots<entity.getNumberOfCriticals(location); slots++)        {            CriticalSlot slot = entity.getCritical(location, slots);            if (slot==null || slot.getType()==CriticalSlot.TYPE_SYSTEM)                continue;            if (slot.getType()==CriticalSlot.TYPE_EQUIPMENT)            {                if (slot.getIndex()==eNum)                    count++;            }        }        return count;    }