misc.setModes(new String[] {"ECM", "ECCM"}); misc.setInstantModeSwitch(false);
    public static MiscType createSingleHexECM() {        MiscType misc = new MiscType();                misc.name = BattleArmor.SINGLE_HEX_ECM;        misc.setInternalName(BattleArmor.SINGLE_HEX_ECM);        misc.tonnage = 0;        misc.criticals = 0;        misc.hittable = false;        misc.spreadable = false;        misc.flags |= F_ECM;        misc.bv = 0;                return misc;    }