/// <summary> /// Removes an Evasion modifier. /// </summary> /// <param name="evasionMod">The percentage change in decimal form. For example, .6 would indicate a 60% decrease in Evasion.</param> public void RemoveEvasionMod(double evasionMod) { BattleStats.EvasionModifiers.Remove(evasionMod); BattleStats.CalculateTotalEvasionMod(); Debug.Log($"Removed evasion mod of {evasionMod}. Total evasion mod is now: {BattleStats.EvasionMod}"); }
/// <summary> /// Adds an Evasion modifier. /// </summary> /// <param name="evasionMod">The percentage change in decimal form. For example, .6 would indicate a 60% decrease in Evasion.</param> public void AddEvasionMod(double evasionMod) { BattleStats.EvasionModifiers.Add(evasionMod); BattleStats.CalculateTotalEvasionMod(); Debug.Log($"Added evasion mod of {evasionMod}. Total evasion mod is now: {BattleStats.EvasionMod}"); }