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