/// <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)); }
public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm) { if (pkm.IsEgg) { return(false); } return(CanHaveDynamaxLevel(pkm.Species)); }
public static bool CanHaveDynamaxLevel(this IDynamaxLevel _, PKM pkm) { if (pkm.IsEgg) { return(false); } if (pkm.Species >= (int)Species.Zacian) { return(false); } return(true); }
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); }
public static byte GetSuggestedDynamaxLevel(this IDynamaxLevel _, PKM pk) => _.CanHaveDynamaxLevel(pk) ? (byte)10 : (byte)0;