Add sound effects for buff management and notifications; update scene configurations

This commit is contained in:
2025-08-23 05:09:47 +02:00
parent 9cf707945b
commit bf272b4c2f
127 changed files with 1500 additions and 4 deletions

View File

@@ -11,6 +11,8 @@ namespace ParasiticGod.Scripts.Components;
public partial class ActiveBuffsManager : Node
{
[Export] private PackedScene _activeBuffScene;
[Export] private AudioStreamPlayer _buffRemovedSfx;
[Export] private AudioStreamPlayer _buffAddedSfx;
private readonly Dictionary<Guid, ActiveBuffUi> _activeBuffUis = new();
@@ -33,6 +35,7 @@ public partial class ActiveBuffsManager : Node
AddChild(buffInstance);
buffInstance.SetBuff(buff);
_activeBuffUis.Add(buff.Id, buffInstance);
_buffAddedSfx?.Play();
}
private void OnBuffRemoved(Buff buff)
@@ -41,6 +44,7 @@ public partial class ActiveBuffsManager : Node
{
buffUi.QueueFree();
_activeBuffUis.Remove(buff.Id);
_buffRemovedSfx?.Play();
}
}
}