23 lines
429 B
GDScript
23 lines
429 B
GDScript
# base ability class containing the main definitions
|
|
class_name AbilityBase
|
|
extends TextureRect
|
|
|
|
|
|
enum TargTypes {
|
|
SINGLE,
|
|
CLEAVE,
|
|
CHAIN,
|
|
SWIPE,
|
|
WAVE,
|
|
AREA,
|
|
RAY,
|
|
}
|
|
|
|
|
|
@export var attack_range := 0
|
|
@export var attack_type := TargTypes.SINGLE
|
|
@export var damage_type := GlobalTypes.Ability.PDmgTypes.SLICE
|
|
@export var attack_damage := 200
|
|
@export var attack_speed := 1.0
|
|
@export var base_cooldown := 0.0
|