2019-11-16 01:34:18 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-06-22 00:46:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface that exposes an indication if the Pokémon can Gigantamax.
|
|
|
|
|
/// </summary>
|
2019-11-16 01:34:18 +00:00
|
|
|
|
public interface IGigantamax
|
|
|
|
|
{
|
2020-06-22 00:46:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates if the Pokémon is capable of Gigantamax as opposed to regular Dynamax.
|
|
|
|
|
/// </summary>
|
2019-11-16 01:34:18 +00:00
|
|
|
|
bool CanGigantamax { get; set; }
|
|
|
|
|
}
|
2020-06-24 23:59:26 +00: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 22:15:41 +00:00
|
|
|
|
}
|