mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
mein
This commit is contained in:
@@ -23,12 +23,14 @@ func interact(player):
|
||||
if currentStashValue < maxStashValue:
|
||||
currentStashValue += 1
|
||||
player.clearInventory()
|
||||
$AudioStreamPlayer2.play()
|
||||
return
|
||||
|
||||
if player.getResource() == 1:
|
||||
if currentPowderStashValue < maxPowderStashValue:
|
||||
currentPowderStashValue += 1
|
||||
player.clearInventory()
|
||||
$AudioStreamPlayer2.play()
|
||||
return
|
||||
return
|
||||
|
||||
@@ -38,6 +40,6 @@ func shoot():
|
||||
currentStashValue -= 1
|
||||
currentPowderStashValue = 0
|
||||
currentState = STATE.INACTIVE
|
||||
$AudioStreamPlayer3D.play(0)
|
||||
$AudioStreamPlayer.play(0)
|
||||
return true
|
||||
return false
|
||||
|
||||
@@ -22,6 +22,7 @@ func interact(player):
|
||||
if (train.current_speed + refuelRate) <= maxSpeed:
|
||||
train.current_speed += refuelRate
|
||||
player.clearInventory()
|
||||
$AudioStreamPlayer.play()
|
||||
if train.current_speed >= maxSpeed:
|
||||
train.current_speed = maxSpeed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user