capacity-=(getNumberOfSinks() - getActiveSinks())*(doubleSinks? 2: 1);
    public int getHeatCapacity() {        int capacity = 0;        boolean doubleSinks=false;                for (Enumeration i = miscList.elements(); i.hasMoreElements();) {            Mounted mounted = (Mounted)i.nextElement();            if (mounted.isDestroyed() || mounted.isBreached()) {                continue;            }            if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) {                capacity++;            } else if(mounted.getType().hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) {                doubleSinks=true;                capacity += 2;            }        }        //test for disabled sinks        capacity-=(getNumberOfSinks() - getActiveSinks())*(doubleSinks? 2: 1);                return capacity;    }