package edu.stuy.starlorn.upgrades;

public class LawnSprinklerUpgrade extends GunUpgrade {

    private double _direction;

    public LawnSprinklerUpgrade() {
        super();
        _name = "Lawn Sprinkler";
        _description = "_.-^-._.-^-._.-^-._.-^-._";
        _direction = -0.2;
    }

    @Override
    public double getAimAngle() {
        _direction += 0.2;
        if (_direction >= 1.6)
            _direction = 0;
        return (Math.PI * (0.8 - _direction) / 2);
    }

    @Override
    public double getCooldown(double cooldown) {
        return cooldown * 0.75;
    }

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

@@ -116,16 +116,44 @@
 rection;
+%0A    private boolean _where;
 %0A%0A    pu
@@ -363,24 +363,48 @@
 imAngle() %7B%0A
+        if (_where)%0A    
         _dir
@@ -414,24 +414,76 @@
 ion += 0.2;%0A
+        if (!_where)%0A            _direction -= 0.2;%0A
         if (
@@ -505,32 +505,60 @@
 .6)%0A            
+_where = false;%0A        if (
 _direction = 0;%0A
@@ -552,19 +552,47 @@
 rection 
+%3C
 = 0
+)%0A            _where = true
 ;%0A      

Update LawnSprinklerUpgrade.java