diff --git a/scripts/AbilityBase.gd b/scripts/AbilityBase.gd new file mode 100644 index 0000000..a8854cd --- /dev/null +++ b/scripts/AbilityBase.gd @@ -0,0 +1,13 @@ +class_name AbilityBase +extends TextureRect + + +enum TARGTYPES { SINGLE, CLEAVE, CHAIN, SWIPE, WAVE, AREA, RAY } +enum PDMGTYPES { SLICE, PUNCTURE, BASH, HACK, SHRED } +enum MDMGTYPES { BURN, FREEZE, SHOCK, POISON, LIFE, RADIANT, ARCANE, FORCE } +enum SMODTYPES { STUN, SLOW, ABSORB, SHIELD, DOTB, DOTE } + +@export var attack_range := 0 +@export var attack_type := TARGTYPES.SINGLE +@export var attack_damage := 200 +@export var attack_speed := 1.0 \ No newline at end of file diff --git a/scripts/AbilityPlayer.gd b/scripts/AbilityPlayer.gd index 08cd489..dea8076 100644 --- a/scripts/AbilityPlayer.gd +++ b/scripts/AbilityPlayer.gd @@ -1,15 +1,6 @@ # placerholder test ability class_name AbilityPlayer -extends TextureRect - -enum TARGTYPES { SINGLE, CLEAVE, CHAIN, SWIPE, WAVE, AREA, RAY } -enum PDMGTYPES { SLICE, PUNCTURE, BASH, HACK, SHRED } -enum MDMGTYPES { BURN, FREEZE, SHOCK, POISON, LIFE, RADIANT, ARCANE, FORCE } - -@export var attack_range := 0 -@export var attack_type := TARGTYPES.SINGLE -@export var attack_damage := 200 -@export var attack_speed := 1.0 +extends AbilityBase var middleX