This commit is contained in:
Arthur
2022-12-11 10:53:48 +01:00
50 changed files with 838 additions and 54 deletions

View File

@@ -22,6 +22,7 @@ func interact(player):
if currentStashValue < maxStashValue:
currentStashValue += 1
ammoType = 0
DAMAGE = 5
player.clearInventory()
$AudioStreamPlayer2.play()
return
@@ -37,6 +38,7 @@ func interact(player):
if currentStashValue < maxStashValue:
currentStashValue += 1
ammoType = 1
DAMAGE = 8
player.clearInventory()
$AudioStreamPlayer2.play()
return
@@ -45,6 +47,7 @@ func interact(player):
if currentStashValue < maxStashValue:
currentStashValue += 1
ammoType = 2
DAMAGE = 12
player.clearInventory()
$AudioStreamPlayer2.play()
return

View File

@@ -3,7 +3,7 @@ class_name TrainEngine
enum STATE {RUNNING, DEAD}
const maxSpeed = 20
const maxSpeed = 40
const refuelRate = 1.0
@onready var train = get_parent() as Train