package edu.stuy.starlorn.upgrades;

public class SpeedShotUpgrade extends GunUpgrade {
    public SpeedShotUpgrade() {
        super();
        _name = "Speed Shot";
        _description = "Shot Speed x 2!";
    }

    @Override
    public double getShotSpeed(double shotspeed) {
        return shotspeed * 2;
    }

    @Override
    public Upgrade clone() {
        return new SpeedShotUpgrade();
    }
}

package edu.stuy.starlorn.upgrades;

public class SpeedShotUpgrade extends GunUpgrade {
    public SpeedShotUpgrade() {
        super();
        _name = "Speed Shot";
        _description = "Shot Speed x 2!";
    }

    @Override
    public double getCoolDown(double cooldown) {
        return cooldown / 3;
    }

    @Override
    public Upgrade clone() {
        return new SpeedShotUpgrade();
    }
}

Update SpeedShotUpgrade.java