Beispiel #1
0
        protected override void setPKM(PKM pkm)
        {
            XK3 pk = pkm as XK3;

            if (pk == null)
            {
                return; // shouldn't ever hit
            }
            if (pk.CurrentRegion == 0)
            {
                pk.CurrentRegion = 2; // NTSC-U
            }
            if (pk.OriginalRegion == 0)
            {
                pk.OriginalRegion = 2; // NTSC-U
            }
            // Set Shadow Data back to save
            if (pk.ShadowID <= 0 || pk.ShadowID >= ShadowInfo.Count)
            {
                return;
            }

            var entry = ShadowInfo[pk.ShadowID - 1];

            entry.Purification = pk.Purification;
            entry.Species      = pk.Species;
            entry.PID          = pk.PID;
            entry.IsPurified   = pk.Purification == 0;
        }
Beispiel #2
0
        /// <summary>
        /// Converts a <see cref="PK3"/> or <see cref="CK3"/> to <see cref="XK3"/>.
        /// </summary>
        /// <returns><see cref="XK3"/> format <see cref="PKM"/></returns>
        public PKM convertToXK3()
        {
            if (Format != 3)
            {
                return(null);
            }
            if (GetType() == typeof(XK3))
            {
                return(this);
            }
            var pk = new XK3();

            TransferPropertiesWithReflection(this, pk);
            pk.setStats(getStats(PersonalTable.RS[pk.Species]));
            return(pk);
        }
Beispiel #3
0
 public PKM convertToXK3()
 {
     if (Format != 3)
         return null;
     if (GetType() == typeof(XK3))
         return this;
     var pk = new XK3();
     TransferPropertiesWithReflection(this, pk);
     pk.setStats(getStats(PersonalTable.RS[pk.Species]));
     return pk;
 }