String[] modes = { "Damage", "Heat" }; weapon.setModes(modes);
    public static WeaponType createBAFlamer() {        WeaponType weapon = new WeaponType();        weapon.name = "Flamer";        weapon.internalName = "BAFlamer";        weapon.mepName = "BA-Flamer";        weapon.mtfName = weapon.internalName;        weapon.tdbName = "N/A";        weapon.heat = 0;        weapon.damage = DAMAGE_VARIABLE;        weapon.rackSize = 2;        weapon.ammoType = AmmoType.T_NA;        weapon.minimumRange = WEAPON_NA;        weapon.shortRange = 1;        weapon.mediumRange = 2;        weapon.longRange = 3;        weapon.tonnage = 0.0f;        weapon.criticals = 0;        weapon.bv = 0;        weapon.flags |= F_DIRECT_FIRE | F_BATTLEARMOR | F_FLAMER;        String[] modes = { "Damage", "Heat" };        weapon.setModes(modes);        return weapon;    }