From a6e7c49a162ada8ec0883fccb1da7313b03ba2ec Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 25 Jul 2026 17:14:11 +0200 Subject: weapons are swappable now --- Weapon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Weapon.cs') diff --git a/Weapon.cs b/Weapon.cs index 6050cc7..194f907 100644 --- a/Weapon.cs +++ b/Weapon.cs @@ -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"); + var statsComponent = GetParent().GetParent().GetNodeOrNull("StatsComponent"); float finalDamage = 10.0f; // Fallback default -- cgit v1.2.3