Beispiel #1
0
 /// <summary>
 /// Sets the suggested Form Argument to the <see cref="pk"/>.
 /// </summary>
 public static void SetSuggestedFormArgument(this PKM pk, int originalSpecies = 0)
 {
     if (pk is not IFormArgument)
     {
         return;
     }
     if (!IsFormArgumentTypeDatePair(pk.Species, pk.Form))
     {
         uint suggest = originalSpecies switch
         {
             (int)Yamask when pk.Species == (int)Runerigus => 49u,
             (int)Qwilfish when pk.Species == (int)Overqwil => 20u,
             (int)Stantler when pk.Species == (int)Wyrdeer => 20u,
             (int)Basculin when pk.Species == (int)Basculegion => 294u,
             _ => 0u,
         };
         pk.ChangeFormArgument(suggest);
         return;
     }