first version of enitites damageables weapons item and effects workflow
This commit is contained in:
@@ -2,5 +2,5 @@ extends Resource
|
||||
|
||||
class_name Effect
|
||||
|
||||
func apply_effect (character: Character)-> void:
|
||||
func apply_effect (orign_entity: Entity, target_entity: Entity)-> void:
|
||||
assert(false)
|
||||
|
||||
6
scripts/resources/Effects/HealEffect.gd
Normal file
6
scripts/resources/Effects/HealEffect.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
class_name HealEffect extends Effect
|
||||
|
||||
@export var heal_amount: int
|
||||
|
||||
func apply_effect (orign_entity: Entity, target_entity: Entity)-> void:
|
||||
target_entity.increase_health(heal_amount)
|
||||
@@ -1,4 +0,0 @@
|
||||
extends Effect
|
||||
|
||||
func apply_effect (character: Character)-> void:
|
||||
character.stats.health.value = character.stats.max_health.value
|
||||
Reference in New Issue
Block a user