private void RemoveBuffDebuff(ShipData.BuffDebuff existingBuffDebuff) { if (buffDebuff.Contains(existingBuffDebuff) == false) { Debug.LogError("Tried to remove a BuffDebuff that no longer exists"); return; } Debug.Log("Buff/Debuff expired: " + existingBuffDebuff.Name); buffDebuff.Remove(existingBuffDebuff); Recalculate_finalStats(); }
//buffs and debuffs public void AddBuffDebuff(ShipData.BuffDebuff newBuffDebuff) { buffDebuff.Add(newBuffDebuff); Recalculate_finalStats(); }