Пример #1
0
 public void AddMegaStone(MegaStone stone)
 {
     if (!megaStones.ContainsKey(stone.BasePkmn.ID))
     {
         megaStones.Add(stone.BasePkmn.ID, stone);
     }
 }
Пример #2
0
        /* This function clones the Mega Stone to return a new copy of the object.
         * It is used to copy a Mega Stone from the master list in the ItemManager. */
        public override object Clone()
        {
            MegaStone stone = new MegaStone(basepkmn, Name, Price);

            return(stone);
        }