예제 #1
0
 /// <summary>
 /// Checks if the species is allowed to have a non-zero value for <see cref="IDynamaxLevel.DynamaxLevel"/>.
 /// </summary>
 public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pk)
 {
     if (pk.IsEgg)
     {
         return(false);
     }
     return(pk is PK8 && CanHaveDynamaxLevel(pk.Species));
 }
예제 #2
0
 public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm)
 {
     if (pkm.IsEgg)
     {
         return(false);
     }
     return(CanHaveDynamaxLevel(pkm.Species));
 }
예제 #3
0
 public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm)
 {
     if (pkm.IsEgg)
     {
         return(false);
     }
     if (pkm.Species >= (int)Species.Zacian)
     {
         return(false);
     }
     return(true);
 }
예제 #4
0
        public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm)
        {
            if (pkm.IsEgg)
            {
                return(false);
            }
            var species = pkm.Species;

            if (species == (int)Zacian || species == (int)Zamazenta || species == (int)Eternatus)
            {
                return(false);
            }
            return(true);
        }
예제 #5
0
 public static byte GetSuggestedDynamaxLevel(this IDynamaxLevel _, PKM pk) => _.CanHaveDynamaxLevel(pk) ? (byte)10 : (byte)0;