mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
Summary (required)
This commit is contained in:
@@ -17,7 +17,7 @@ func interact():
|
|||||||
#TODO: RELOADING
|
#TODO: RELOADING
|
||||||
if currentStashValue < maxStashValue:
|
if currentStashValue < maxStashValue:
|
||||||
currentState = STATE.RELOADING
|
currentState = STATE.RELOADING
|
||||||
++currentStashValue
|
currentStashValue += 1
|
||||||
return
|
return
|
||||||
|
|
||||||
return
|
return
|
||||||
@@ -25,7 +25,7 @@ func interact():
|
|||||||
func _on_signal_shooting():
|
func _on_signal_shooting():
|
||||||
if currentStashValue >= 1 and currentState == STATE.INACTIVE:
|
if currentStashValue >= 1 and currentState == STATE.INACTIVE:
|
||||||
currentState = STATE.SHOOTING
|
currentState = STATE.SHOOTING
|
||||||
--currentStashValue
|
currentStashValue -= 1
|
||||||
#TODO: SHOOTING
|
#TODO: SHOOTING
|
||||||
currentState = STATE.INACTIVE
|
currentState = STATE.INACTIVE
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ func interact():
|
|||||||
currentStashValue += 10
|
currentStashValue += 10
|
||||||
if currentStashValue > maxStashValue:
|
if currentStashValue > maxStashValue:
|
||||||
currentStashValue = maxStashValue
|
currentStashValue = maxStashValue
|
||||||
|
|
||||||
return
|
return
|
||||||
#TODO: Repair Train
|
#TODO: Repair Train
|
||||||
currentState = STATE.RUNNING
|
currentState = STATE.RUNNING
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ func _ready():
|
|||||||
currentStashValue = 0
|
currentStashValue = 0
|
||||||
func interact():
|
func interact():
|
||||||
if currentStashValue >= 1:
|
if currentStashValue >= 1:
|
||||||
--currentStashValue
|
currentStashValue -= 1
|
||||||
return
|
return
|
||||||
func _on_signal_storing():
|
func _on_signal_storing():
|
||||||
if currentStashValue < maxStashValue:
|
if currentStashValue < maxStashValue:
|
||||||
++currentStashValue
|
currentStashValue += 1
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user