Пример #1
0
 /// <summary>
 /// Changes the basepokemon for this pokemon
 /// used for evolution
 /// </summary>
 /// <param name="name">name of pokemon to change to</param>
 public void changeBasePokemon(String name)
 {
     baseStat = BaseStatsList.GetBaseStats(name);
     if (!isNamed)                 //if the pokemon has no nickname
     {
         nickname = baseStat.Name; //change the pokemon's name to the new species' name
     }
 }
Пример #2
0
        public ActivePokemon(int id, Trainer _trainer)
        {
            trainer  = _trainer;
            baseStat = BaseStatsList.GetBaseStats(id);

            //individual stuff
            Random random = new Random();

            IVHP      = random.Next(0, 31);
            IVAttack  = random.Next(0, 31);
            IVDefense = random.Next(0, 31);
            IVSPAtk   = random.Next(0, 31);
            IVSPDef   = random.Next(0, 31);
            IVSpeed   = random.Next(0, 31);
            nature    = (NatureType)random.Next(0, 24);

            EVHP      = 0;
            EVAttack  = 0;
            EVDefense = 0;
            EVSPAtk   = 0;
            EVSPDef   = 0;
            EVSpeed   = 0;

            status = MajorStatus.None;

            isNamed  = false;
            nickname = baseStat.Name;
            level    = 1;

            currentHP = HP;

            move    = new ActiveMove[4];
            move[0] = null;
            move[1] = null;
            move[2] = null;
            move[3] = null;
        }
Пример #3
0
 public void UpdateBaseStat(int id)
 {
     baseStat = BaseStatsList.GetBaseStats(id);
 }