refactor: Consolidate skill component logic into SkillComponentBase and update manager access to singletons.

This commit is contained in:
2026-01-31 17:35:27 +01:00
parent 425fa5b940
commit 288f0b1916
27 changed files with 212 additions and 179 deletions

View File

@@ -14,7 +14,7 @@ public partial class SkillCollectHandler : Node
public override void _Ready()
{
_skillManager = GetNode<SkillManager>(Constants.SkillManagerPath);
_skillManager = SkillManager.Instance;
EventBus.Instance.SkillCollected += OnSkillCollected;
}
@@ -34,7 +34,6 @@ public partial class SkillCollectHandler : Node
GameStateStore.Instance?.UnlockSkillInSession(skill);
// Immediately activate the skill for the player
skill.IsActive = true;
skill.Level = 1;
_skillManager?.AddSkill(skill);