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: