Summary (required)

This commit is contained in:
Arthur
2022-12-10 02:22:52 +01:00
parent d049e3c1ae
commit 359c3cf1f1
3 changed files with 29 additions and 11 deletions

View File

@@ -17,15 +17,15 @@ func interact():
#TODO: RELOADING
if currentStashValue < maxStashValue:
currentState = STATE.RELOADING
currentStashValue = maxStashValue
++currentStashValue
return
return
func _on_signal_shooting():
if currentStashValue == 1 and currentState == STATE.INACTIVE:
if currentStashValue >= 1 and currentState == STATE.INACTIVE:
currentState = STATE.SHOOTING
--currentStashValue
#TODO: SHOOTING
currentState = STATE.INACTIVE
return