String[] modes = { "", "Rapid" }; weapon.setModes(modes);
    public static WeaponType createAC5() {        WeaponType weapon = new WeaponType();        weapon.techLevel = TechConstants.T_IS_LEVEL_1;        weapon.name = "Auto Cannon/5";        weapon.setInternalName(weapon.name);        weapon.addLookupName("IS Auto Cannon/5");        weapon.addLookupName("ISAC5");        weapon.addLookupName("IS Autocannon/5");        weapon.heat = 1;        weapon.damage = 5;        weapon.rackSize = 5;        weapon.ammoType = AmmoType.T_AC;        weapon.minimumRange = 3;        weapon.shortRange = 6;        weapon.mediumRange = 12;        weapon.longRange = 18;        weapon.extremeRange = 24;        weapon.tonnage = 8.0f;        weapon.criticals = 4;        weapon.flags |= F_DIRECT_FIRE | F_BALLISTIC;        weapon.bv = 70;        weapon.cost = 125000;        weapon.explosive = true; //when firing incendiary ammo        return weapon;    }