Leo - storage finished2.0

This commit is contained in:
2022-12-10 13:09:57 +01:00
parent 7d8127e151
commit 797396b4f2
9 changed files with 26 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ func _ready():
currentStashValue = 100
currentState = STATE.RUNNING
#TODO: FINISH
func interact():
func interact(player):
if currentState == STATE.RUNNING:
if (train.current_speed + refuelRate) <= maxSpeed:
train.current_speed += refuelRate