create base ability class, move attack type enums and base stats to this new class
This commit is contained in:
parent
e0f78f3915
commit
a5b8336633
13
scripts/AbilityBase.gd
Normal file
13
scripts/AbilityBase.gd
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user