public Buff(int BuffID, string name, bool IsNegative, bool accumulate, int dispellamount = 0, onBuffEnd END = null, onBuffStart START = null) { _ID = BuffID; AccumulateEffect = accumulate; isNegative = IsNegative; BuffName = name; OnEnd = END; OnStart = START; DispellAmount = dispellamount; amount = 1; duration = 1; BuffDB.BuffsByID.Add(BuffID, this); }
public Buff(int id, float amount, float duration) { _ID = id; Buff b = BuffDB.BuffsByID[id]; OnEnd = b.OnEnd; OnStart = b.OnStart; BuffName = b.BuffName; isNegative = b.isNegative; DispellAmount = b.DispellAmount; AccumulateEffect = b.AccumulateEffect; this.amount = amount; this.duration = duration; }