22 lines
390 B
GDScript
22 lines
390 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 target_type := TargTypes.SINGLE
|
|
@export var damage_type := Globals.Ability.PDmgTypes.SLICE
|
|
@export var attack_damage := 200
|
|
@export var auto_speed := 1.0
|