From 64197ae3c925ba1cc517a6449b1b94414bd89538 Mon Sep 17 00:00:00 2001 From: PfandBoss <68470553+PfandBoss@users.noreply.github.com> Date: Sat, 10 Dec 2022 11:44:43 +0100 Subject: [PATCH] Update Cannon.gd --- scripts/Modules/Cannon.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/Modules/Cannon.gd b/scripts/Modules/Cannon.gd index 8711c12..a44d833 100644 --- a/scripts/Modules/Cannon.gd +++ b/scripts/Modules/Cannon.gd @@ -3,7 +3,8 @@ extends Module class_name Cannon enum STATE {INACTIVE, RELOADING, SHOOTING} - +enum AMMO {NORMAL, HEAVY, LIGHT} +var currentAmmo: AMMO var CAN_ENGAGE = true var DAMAGE = 5 @onready var train = get_parent() as Train @@ -15,6 +16,7 @@ func _ready(): currentState = STATE.INACTIVE #TODO: FINISH func interact(): + if currentState == STATE.INACTIVE: #TODO: RELOADING if currentStashValue < maxStashValue: