diff --git a/Cannon.gd b/Cannon.gd index 56a55e5..e392237 100644 --- a/Cannon.gd +++ b/Cannon.gd @@ -17,7 +17,7 @@ func interact(): #TODO: RELOADING if currentStashValue < maxStashValue: currentState = STATE.RELOADING - ++currentStashValue + currentStashValue += 1 return return @@ -25,7 +25,7 @@ func interact(): func _on_signal_shooting(): if currentStashValue >= 1 and currentState == STATE.INACTIVE: currentState = STATE.SHOOTING - --currentStashValue + currentStashValue -= 1 #TODO: SHOOTING currentState = STATE.INACTIVE return diff --git a/Engine.gd b/Engine.gd index 760d79e..58ac3e6 100644 --- a/Engine.gd +++ b/Engine.gd @@ -17,7 +17,6 @@ func interact(): currentStashValue += 10 if currentStashValue > maxStashValue: currentStashValue = maxStashValue - return #TODO: Repair Train currentState = STATE.RUNNING diff --git a/Storage.gd b/Storage.gd index 840cc53..bf5142d 100644 --- a/Storage.gd +++ b/Storage.gd @@ -14,10 +14,10 @@ func _ready(): currentStashValue = 0 func interact(): if currentStashValue >= 1: - --currentStashValue + currentStashValue -= 1 return func _on_signal_storing(): if currentStashValue < maxStashValue: - ++currentStashValue + currentStashValue += 1 return