Refactors modifier system to use StatsComponent
Moves modifier logic to utilize a central StatsComponent for managing and applying stat modifications. This change centralizes stat management and simplifies the application of modifiers, enhancing code maintainability and reducing redundancy. It also moves modifier files to the correct directory.
This commit is contained in:
parent
19cc8cb573
commit
9f66ab0a73
21 changed files with 135 additions and 97 deletions
|
|
@ -11,7 +11,7 @@ func process(_delta):
|
|||
var direction = mouse_position - player_position
|
||||
var normalized_direction = direction.normalized()
|
||||
|
||||
player.weapon.fire(normalized_direction, mouse_position)
|
||||
player.ranged.fire(normalized_direction, mouse_position)
|
||||
# Update animation
|
||||
#update_animation()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue