public static MaxDamage ( List |
||
damageTaken | List |
|
Результат | float |
public static float MaxDamage(List<float> damageTaken)
{
float largest = float.MinValue;
foreach (float f in damageTaken)
if (f > largest)
largest = f;
return largest + (largest / damageTaken.Count) - 1;
}