コード例 #1
0
        public void RandomizeMoves()
        {
            var moves = new List <PBEMove>(PBELegalityChecker.GetLegalMoves(Species, Form, Level, PBESettings.DefaultSettings));

            for (int i = 0; i < PBESettings.DefaultNumMoves; i++)
            {
                Moveset[i].Clear();
            }
            for (int i = 0; i < PBESettings.DefaultNumMoves && moves.Count > 0; i++)
            {
                Moveset.MovesetSlot slot = Moveset[i];
                PBEMove             move = PBEUtils.GlobalRandom.RandomElement(moves);
                moves.Remove(move);
                slot.Move  = move;
                slot.PPUps = 0;
                slot.SetMaxPP();
            }
        }
コード例 #2
0
 public BoxMovesetSlot(Moveset.MovesetSlot other)
 {
     Move  = other.Move;
     PPUps = other.PPUps;
 }