Adds a modifier and stats system to manage combat-related attributes. Introduces StatsComponent for storing entity statistics and ModifierManager for applying dynamic modifiers. Recalculates stats based on modifier type and priority. Updates projectile and weapon components to utilize the new stats system.
6 lines
159 B
GDScript
6 lines
159 B
GDScript
@icon("res://assets/editor/64x64/fc728.png")
|
|
extends Node2D
|
|
class_name MeleeWeaponComponent
|
|
|
|
func _init() -> void:
|
|
Log.pr("MeleeWeaponComponent initialized")
|