public static double GetAbilityValue(Ability ability, AbilityData data, uint level = 0xABADC0DE)
 {
     if (data == null)
     {
         return(0.0);
     }
     if (level == 0xABADC0DE)
     {
         level = ability.Level - 1;
     }
     if (level > 0xF0000000)
     {
         level = 0;
     }
     return(data.Count > 1 ? data.GetValue(level) : data.Value);
 }
Exemple #2
0
 public static double GetAbilityValue(Ability ability, AbilityData data, uint level = 0xABADC0DE)
 {
     if (data == null) return 0.0;
     if (level == 0xABADC0DE) level = ability.Level - 1;
     if (level > 0xF0000000) level = 0;
     return data.Count > 1 ? data.GetValue(level) : data.Value;
 }