&& this.curMode().equals("Rapid")) {
&& wtype.hasModes() && this.curMode().equals("Rapid")) {
    public int howManyShots() {        final WeaponType wtype = (WeaponType)this.getType();        int nShots = 1;        // figure out # of shots for variable-shot weapons        if (((wtype.getAmmoType() == AmmoType.T_AC_ULTRA)                || (wtype.getAmmoType() == AmmoType.T_AC_ULTRA_THB))                && this.curMode().equals("Ultra")) {            nShots = 2;        }        //sets number of shots for AC rapid mode        else if ( (wtype.getAmmoType() == AmmoType.T_AC || (wtype.getAmmoType() == AmmoType.T_LAC))                    && this.curMode().equals("Rapid")) {                nShots = 2;            }        else if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY ||                 wtype.getInternalName().equals(BattleArmor.MINE_LAUNCHER)) {            if (this.curMode().equals("2-shot")) {                nShots = 2;            } else if (this.curMode().equals("4-shot")) {                nShots = 4;            } else if (this.curMode().equals("6-shot")) {                nShots = 6;            }        }        return nShots;    }