create base ability class, move attack type enums and base stats to this new class

This commit is contained in:
tonydero 2024-10-16 15:59:37 -06:00
parent e0f78f3915
commit a5b8336633
2 changed files with 14 additions and 10 deletions

13
scripts/AbilityBase.gd Normal file
View File

@ -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

View File

@ -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