This commit is contained in:
Marek Le
2026-04-02 23:22:51 +02:00
parent 73af6abeb7
commit 3488856b91
22 changed files with 534 additions and 78 deletions

View File

@@ -13,3 +13,4 @@ enum Type { SINGLE, AOE, UTILITY, ULT, PASSIVE }
@export var icon: String = ""
@export var is_heal: bool = false
@export var passive_stat: String = "damage"
@export var element: int = 0

View File

@@ -10,3 +10,4 @@ damage = 20.0
ability_range = 5.0
cooldown = 3.0
icon = "2"
element = 1

View File

@@ -9,3 +9,4 @@ damage = 30.0
ability_range = 20.0
cooldown = 2.0
icon = "1"
element = 1

View File

@@ -11,3 +11,4 @@ ability_range = 20.0
cooldown = 15.0
aoe_radius = 3.0
icon = "4"
element = 1

View File

@@ -10,6 +10,9 @@ var current_role: int = Role.DAMAGE
@onready var player: CharacterBody3D = get_parent()
func _ready() -> void:
set_role.call_deferred(current_role)
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("class_tank"):
set_role(Role.TANK)