2019-11-15 17:34:18 -08:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-06-21 19:46:06 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface that exposes an indication if the Pokémon can Gigantamax.
|
|
|
|
|
/// </summary>
|
2019-11-15 17:34:18 -08:00
|
|
|
|
public interface IGigantamax
|
|
|
|
|
{
|
2020-06-21 19:46:06 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates if the Pokémon is capable of Gigantamax as opposed to regular Dynamax.
|
|
|
|
|
/// </summary>
|
2019-11-15 17:34:18 -08:00
|
|
|
|
bool CanGigantamax { get; set; }
|
|
|
|
|
}
|
2020-06-24 18:59:26 -05:00
|
|
|
|
|
|
|
|
|
public static class GigantamaxExtensions
|
|
|
|
|
{
|
|
|
|
|
public static bool CanToggleGigantamax(this IGigantamax _, int currentSpecies, int originSpecies)
|
|
|
|
|
{
|
|
|
|
|
var soup = Legal.CanEatMaxSoup;
|
|
|
|
|
return soup.Contains(currentSpecies) || soup.Contains(originSpecies);
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-16 15:15:41 -07:00
|
|
|
|
}
|