Add new miracles: Divine Mandate and Prosperity Boom; update buff application logic and game state calculations
This commit is contained in:
@@ -23,7 +23,9 @@ public partial class ApplyBuffEffect : Effect
|
||||
{
|
||||
Name = $"{TargetStat} x{Multiplier}",
|
||||
Multiplier = Multiplier,
|
||||
Duration = Duration
|
||||
Duration = Duration,
|
||||
TargetStat = TargetStat,
|
||||
BuffId = BuffId
|
||||
};
|
||||
|
||||
gameState.ActiveBuffs.Add(newBuff);
|
||||
|
@@ -4,9 +4,10 @@ namespace ParasiticGod.Scripts.Core.Effects;
|
||||
|
||||
public class Buff
|
||||
{
|
||||
public Guid InstanceId { get; } = Guid.NewGuid(); // Unique identifier
|
||||
public string BuffId { get; set; } // Identifier for the type of buff
|
||||
public string Name { get; set; } // For display purposes
|
||||
public Guid InstanceId { get; } = Guid.NewGuid();
|
||||
public string BuffId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public Stat TargetStat { get; set; }
|
||||
public float Multiplier { get; set; } = 1.0f;
|
||||
public double Duration { get; set; }
|
||||
}
|
Reference in New Issue
Block a user