Add Active Buffs management and UI integration

This commit is contained in:
2025-08-23 04:20:42 +02:00
parent 32c75c6fe8
commit 5719c3f920
16 changed files with 217 additions and 51 deletions

View File

@@ -1,4 +1,5 @@
using Godot;
using ParasiticGod.Scripts.Singletons;
namespace ParasiticGod.Scripts.Core.Effects;
@@ -13,11 +14,13 @@ public partial class ApplyBuffEffect : Effect
{
var newBuff = new Buff
{
Name = $"{TargetStat} x{Multiplier}",
Multiplier = Multiplier,
Duration = Duration
};
gameState.ActiveBuffs.Add(newBuff);
GameBus.Instance.NotifyBuffAdded(newBuff);
}
public override string ToString()

View File

@@ -1,7 +1,11 @@
using System;
namespace ParasiticGod.Scripts.Core.Effects;
public class Buff
{
public Guid Id { get; } = Guid.NewGuid(); // Unique identifier
public string Name { get; set; } // For display purposes
public float Multiplier { get; set; } = 1.0f;
public double Duration { get; set; }
}