package edu.stuy.starlorn.upgrades;

public class ScatterShotUpgrade extends GunUpgrade {

    public ScatterShotUpgrade() {
        super();
        _name = "Scattershot";
        _description = "";
    }
    
    @Override
    public int getNumShots() {
        return 4;
    }

    @Override
    public double getAimAngle() {
        // Random angle going forwards
        return (Math.PI * (Math.random() - .5));
    }

    @Override
    public int getShotSpeed(int shotspeed) {
        // Random speed, either 1, 2, or 3
        return (int) (Math.random() * 3) + shotspeed;
    }
}

package edu.stuy.starlorn.upgrades;

public class ScatterShotUpgrade extends GunUpgrade {

    public ScatterShotUpgrade() {
        super();
        _name = "Scattershot";
        _description = "";
    }
    
    @Override
    public int getNumShots() {
        return 4;
    }

    @Override
    public double getAimAngle() {
        // Random angle going forwards
        return (Math.PI * Math.random());
    }

    @Override
    public int getShotSpeed(int shotspeed) {
        // Random speed, either 1, 2, or 3
        return (int) (Math.random() * 3) + shotspeed;
    }
}

--- 
+++ 
@@ -16,7 +16,7 @@
     @Override
     public double getAimAngle() {
         // Random angle going forwards
-        return (Math.PI * Math.random());
+        return (Math.PI * (Math.random() - .5));
     }
 
     @Override
Make ScatterShot not use derp angles
