编队系统大更新 基本快搞好了 准备做敌人和分数
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user