Пример #1
0
 private static void UpdateGen2LevelUpMoves(PKM pkm, ValidEncounterMoves EncounterMoves, int defaultLvlG2, int generation, LegalInfo info)
 {
     switch (generation)
     {
     case 1:
     case 2:
         var lvlG2 = info.EncounterMatch?.LevelMin + 1 ?? 6;
         if (lvlG2 != defaultLvlG2)
         {
             EncounterMoves.LevelUpMoves[2] = Legal.GetValidMoves(pkm, info.EvoChainsAllGens[2], generation: 2, minLvLG2: defaultLvlG2, LVL: true, Tutor: false, Machine: false, MoveReminder: false).ToList();
         }
         break;
     }
 }
Пример #2
0
        private static void UpdateGen1LevelUpMoves(PKM pkm, ValidEncounterMoves EncounterMoves, int defaultLvlG1, int generation, LegalInfo info)
        {
            if (generation >= 3)
            {
                return;
            }
            var lvlG1 = info.EncounterMatch?.LevelMin + 1 ?? 6;

            if (lvlG1 == defaultLvlG1)
            {
                return;
            }
            EncounterMoves.LevelUpMoves[1] = Legal.GetValidMoves(pkm, info.EvoChainsAllGens[1], generation: 1, minLvLG1: lvlG1, LVL: true, Tutor: false, Machine: false, MoveReminder: false).ToList();
        }
Пример #3
0
        private static void UpdateGen2LevelUpMoves(PKM pkm, ValidEncounterMoves EncounterMoves, int defaultLvlG2, int generation, LegalInfo info)
        {
            if (generation >= 3)
            {
                return;
            }
            var lvlG2 = info.EncounterMatch.LevelMin + 1;

            if (lvlG2 == defaultLvlG2)
            {
                return;
            }
            EncounterMoves.LevelUpMoves[2] = MoveList.GetValidMoves(pkm, info.EvoChainsAllGens[2], generation: 2, minLvLG2: defaultLvlG2, LVL: true, Tutor: false, Machine: false, MoveReminder: false).ToList();
        }
Пример #4
0
        private static void UpdateGen2LevelUpMoves(PKM pkm, ValidEncounterMoves EncounterMoves, int defaultLvlG2, int generation, LegalInfo info)
        {
            if (generation >= 3)
            {
                return;
            }
            var lvlG2 = info.EncounterMatch.LevelMin + 1;

            if (lvlG2 == defaultLvlG2)
            {
                return;
            }
            EncounterMoves.LevelUpMoves[2] = MoveList.GetValidMoves(pkm, info.EvoChainsAllGens[2], generation: 2, minLvLG2: defaultLvlG2, types: MoveSourceType.LevelUp).ToList();
        }