diff options
| author | alex <[email protected]> | 2026-07-25 17:14:11 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-07-25 17:14:11 +0200 |
| commit | a6e7c49a162ada8ec0883fccb1da7313b03ba2ec (patch) | |
| tree | 2e374c703ea3591e9f7053477bb1135fe608f58f /Weapon.cs | |
| parent | 023c4f003d58c27cd2677307abe2c65bb09c2681 (diff) | |
| download | godot-testing-a6e7c49a162ada8ec0883fccb1da7313b03ba2ec.tar.xz godot-testing-a6e7c49a162ada8ec0883fccb1da7313b03ba2ec.zip | |
Diffstat (limited to 'Weapon.cs')
| -rw-r--r-- | Weapon.cs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ public partial class Weapon : Node2D // 1. The weapon itself looks up to find the player's stats component // (Assuming the weapon is a child of the Player, GetParent() gets the Player) - var statsComponent = GetParent().GetNodeOrNull<StatsComponent>("StatsComponent"); + var statsComponent = GetParent().GetParent().GetNodeOrNull<StatsComponent>("StatsComponent"); float finalDamage = 10.0f; // Fallback default |
