mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 04:16:12 +01:00
Update Cannon.gd
This commit is contained in:
@@ -3,7 +3,8 @@ extends Module
|
|||||||
class_name Cannon
|
class_name Cannon
|
||||||
|
|
||||||
enum STATE {INACTIVE, RELOADING, SHOOTING}
|
enum STATE {INACTIVE, RELOADING, SHOOTING}
|
||||||
|
enum AMMO {NORMAL, HEAVY, LIGHT}
|
||||||
|
var currentAmmo: AMMO
|
||||||
var CAN_ENGAGE = true
|
var CAN_ENGAGE = true
|
||||||
var DAMAGE = 5
|
var DAMAGE = 5
|
||||||
@onready var train = get_parent() as Train
|
@onready var train = get_parent() as Train
|
||||||
@@ -15,6 +16,7 @@ func _ready():
|
|||||||
currentState = STATE.INACTIVE
|
currentState = STATE.INACTIVE
|
||||||
#TODO: FINISH
|
#TODO: FINISH
|
||||||
func interact():
|
func interact():
|
||||||
|
|
||||||
if currentState == STATE.INACTIVE:
|
if currentState == STATE.INACTIVE:
|
||||||
#TODO: RELOADING
|
#TODO: RELOADING
|
||||||
if currentStashValue < maxStashValue:
|
if currentStashValue < maxStashValue:
|
||||||
|
|||||||
Reference in New Issue
Block a user