String[] modes = { "", "Rapid" }; weapon.setModes(modes);
    public static WeaponType createAC2() {        WeaponType weapon = new WeaponType();        weapon.techLevel = TechConstants.T_IS_LEVEL_1;        weapon.name = "Auto Cannon/2";        weapon.setInternalName(weapon.name);        weapon.addLookupName("IS Auto Cannon/2");        weapon.addLookupName("ISAC2");        weapon.addLookupName("IS Autocannon/2");        weapon.heat = 1;        weapon.damage = 2;        weapon.rackSize = 2;        weapon.ammoType = AmmoType.T_AC;        weapon.minimumRange = 4;        weapon.shortRange = 8;        weapon.mediumRange = 16;        weapon.longRange = 24;        weapon.extremeRange = 32;        weapon.tonnage = 6.0f;        weapon.criticals = 1;        weapon.flags |= F_DIRECT_FIRE | F_BALLISTIC;        weapon.bv = 37;        weapon.cost = 75000;        weapon.explosive = true; //when firing incendiary ammo        return weapon;    }