package edu.stuy.starlorn.upgrades;

public class DoubleShotUpgrade extends GunUpgrade {
    private boolean _shotNum;

    public DoubleShotUpgrade() {
        super();
        _shotNum = false;
    }

    @Override
    public int getNumShots() {
        return 2;
    }

    @Override
    public double getAimAngle() {
        int direction = 0;
        if (_shotNum) {
            _shotNum = !_shotNum;
            direction = 1;
        } else if (!_shotNum) {
            _shotNum = !_shotNum;
            direction = -1;
        }
        return direction * Math.PI/8;
    }
}

@@ -103,23 +103,21 @@
 oolean _
-shotNum
+right
 ;%0A%0A    p
@@ -174,22 +174,19 @@
    _
-shotNum = fals
+right = tru
 e;%0A 
@@ -349,23 +349,21 @@
    if (_
-shotNum
+right
 ) %7B%0A    
@@ -371,35 +371,31 @@
        _
-shotNum = !_shotNum
+right = !_right
 ;%0A      
@@ -436,23 +436,21 @@
 e if (!_
-shotNum
+right
 ) %7B%0A    
@@ -462,27 +462,23 @@
    _
-shotNum = !_shotNum
+right = !_right
 ;%0A  

Rename _shotNum to _right in DoubleShot