String[] modes = { "", "Rapid" }; weapon.setModes(modes);
    public static WeaponType createISLAC2() {        WeaponType weapon = new WeaponType();        weapon.techLevel = TechConstants.T_IS_LEVEL_3;        weapon.name = "Light Auto Cannon/2";        weapon.setInternalName(weapon.name);        weapon.addLookupName("IS Light AutoCannon/2");        weapon.addLookupName("ISLAC2");        weapon.addLookupName("IS Light Autocannon/2");        weapon.heat = 1;        weapon.damage = 2;        weapon.rackSize = 2;        weapon.ammoType = AmmoType.T_LAC;        weapon.shortRange = 6;        weapon.mediumRange = 12;        weapon.longRange = 18;        weapon.extremeRange = 24;        weapon.tonnage = 4.0f;        weapon.criticals = 1;        weapon.flags |= F_DIRECT_FIRE | F_BALLISTIC;        weapon.bv = 30;        weapon.cost = 100000;        weapon.explosive = true; //when firing incendiary ammo        return weapon;    }