32 lines
816 B
C#
32 lines
816 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[Serializable]
|
|
public class Buff
|
|
{
|
|
// Unique identifier for this buff instance
|
|
public string buffId;
|
|
|
|
// Duration in seconds
|
|
public float duration = 0f;
|
|
|
|
// Optional human-readable description/type
|
|
public string description = string.Empty;
|
|
|
|
// Multipliers / modifiers that systems may use
|
|
public float attackMultiplier = 1f; // multiply outgoing attack
|
|
public float scoreMultiplier = 1f; // multiply scoring efficiency
|
|
public float healReceivedMultiplier = 1f; // multiply heals received
|
|
|
|
// Flat modifications (if needed)
|
|
public int flatHP = 0;
|
|
public int flatMana = 0;
|
|
|
|
// Convenience constructor
|
|
public Buff() { buffId = Guid.NewGuid().ToString(); }
|
|
|
|
public Buff(string id)
|
|
{
|
|
buffId = id;
|
|
}
|
|
} |