mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
New Storages in lef train
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user