package edu.stuy.starlorn.upgrades;

public class LawnSprinklerUpgrade extends GunUpgrade {

    private double _direction;

    public LawnSprinklerUpgrade() {
        super();
        _name = "Lawn Sprinkler";
        _description = "¸.·´¯`·.´¯`·.¸¸.·´¯`·.¸";

    }

    @Override
    public double getAimAngle() {
        if (_direction >= 2){
            _direction = 0;
        }
        else
            _direction += 0.1;
        // Random angle going forwards
        return (Math.PI * (1 - _direction) / 2);
    }

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

@@ -85,16 +85,18 @@
 grade %7B%0A
+  
 %0A    pri
@@ -190,16 +190,28 @@
 name = %22
+.%C2%B8%C2%B8.%C2%B7%C2%B4%C2%AF%60%C2%B7.%C2%B8.
 Lawn Spr
@@ -216,16 +216,31 @@
 prinkler
+!!!.%C2%B8%C2%B8.%C2%B7%C2%B4%C2%AF%60%C2%B7.%C2%B8.
 %22;%0A     
@@ -262,34 +262,105 @@
  = %22
-%C2%B8.%C2%B7%C2%B4%C2%AF%60%C2%B7.%C2%B4%C2%AF%60%C2%B7.%C2%B8%C2%B8.%C2%B7%C2%B4%C2%AF%60%C2%B7.%C2%B8%22;%0A
+wat r u srs%22;%0A        %0A    %7D%0A    %0A    @Override%0A    public int getNumShots() %7B%0A        return 10;
 %0A   
@@ -438,16 +438,18 @@
 ion %3E= 2
+.1
 )%7B%0A     
@@ -445,33 +445,44 @@
 2.1)%7B%0A          
- 
+_direction =
  _direction = 0;
@@ -477,19 +477,21 @@
 rection 
-= 0
+- 1.8
 ;%0A      
@@ -506,18 +506,18 @@
     else
-%0A
  
+%0A
         
@@ -510,33 +510,32 @@
 else %0A          
- 
 _direction += 0.
@@ -534,17 +534,17 @@
 on += 0.
-1
+5
 ;%0A      
@@ -622,13 +622,150 @@
 ion)
- / 2)
+);%0A    %7D%0A%0A    @Override%0A    public int getShotSpeed(int shotspeed) %7B%0A        // Random speed, either 1, 2, or 3%0A        return (int) shotspeed
 ;%0A  

Update LawnSprinklerUpgrade.java