2024-10-17 14:11:10 -06:00
|
|
|
# base ability class containing the main definitions
|
2024-10-16 15:59:37 -06:00
|
|
|
class_name AbilityBase
|
|
|
|
extends TextureRect
|
|
|
|
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
enum TargTypes {
|
|
|
|
SINGLE,
|
|
|
|
CLEAVE,
|
|
|
|
CHAIN,
|
|
|
|
SWIPE,
|
|
|
|
WAVE,
|
|
|
|
AREA,
|
|
|
|
RAY,
|
|
|
|
}
|
|
|
|
enum PDmgTypes {
|
|
|
|
SLICE,
|
|
|
|
PUNCTURE,
|
|
|
|
BASH,
|
|
|
|
HACK,
|
|
|
|
SHRED,
|
|
|
|
}
|
|
|
|
enum MDmgTypes {
|
|
|
|
BURN,
|
|
|
|
FREEZE,
|
|
|
|
SHOCK,
|
|
|
|
POISON,
|
|
|
|
LIFE,
|
|
|
|
MENTAL,
|
|
|
|
RADIANT,
|
|
|
|
ARCANE,
|
|
|
|
FORCE
|
|
|
|
}
|
|
|
|
enum SModTypes {
|
|
|
|
STUN,
|
|
|
|
SLOW,
|
|
|
|
ABSORB,
|
|
|
|
SHIELD,
|
|
|
|
DOTB,
|
|
|
|
DOTE
|
|
|
|
}
|
|
|
|
|
2024-10-16 15:59:37 -06:00
|
|
|
|
|
|
|
@export var attack_range := 0
|
2024-10-17 14:11:10 -06:00
|
|
|
@export var attack_type := TargTypes.SINGLE
|
2024-10-16 15:59:37 -06:00
|
|
|
@export var attack_damage := 200
|
2024-10-17 14:11:10 -06:00
|
|
|
@export var attack_speed := 1.0
|
|
|
|
@export var base_cooldown := 0.0
|