String[] modes = { "", "Rapid" }; weapon.setModes(modes);
    public static WeaponType createISLAC5() {        WeaponType weapon = new WeaponType();        weapon.techLevel = TechConstants.T_IS_LEVEL_3;        weapon.name = "Light Auto Cannon/5";        weapon.setInternalName(weapon.name);        weapon.addLookupName("IS Light Auto Cannon/5");        weapon.addLookupName("ISLAC5");        weapon.addLookupName("IS Light Autocannon/5");        weapon.heat = 1;        weapon.damage = 5;        weapon.rackSize = 5;        weapon.ammoType = AmmoType.T_LAC;        weapon.shortRange = 5;        weapon.mediumRange = 10;        weapon.longRange = 15;        weapon.extremeRange = 20;        weapon.tonnage = 5.0f;        weapon.criticals = 2;        weapon.flags |= F_DIRECT_FIRE | F_BALLISTIC;        weapon.bv = 62;        weapon.cost = 150000;        weapon.explosive = true; //when firing incendiary ammo        return weapon;    }