first version of enitites damageables weapons item and effects workflow

This commit is contained in:
Strieglitz
2025-03-09 23:56:19 +01:00
parent b90e0369bf
commit cb65c3a266
42 changed files with 263 additions and 180 deletions

View File

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

View 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)

View File

@@ -1,4 +0,0 @@
extends Effect
func apply_effect (character: Character)-> void:
character.stats.health.value = character.stats.max_health.value