Ejemplo n.º 1
0
        private void SaveMisc3(PKM pk)
        {
            pk.PID    = Util.GetHexValue(TB_PID.Text);
            pk.Nature = WinFormsUtil.GetIndex(CB_Nature);
            pk.Gender = PKX.GetGenderFromString(Label_Gender.Text);

            if (pk is IContestStats s)
            {
                Contest.CopyContestStatsTo(s);
            }

            pk.FatefulEncounter = CHK_Fateful.Checked;
            pk.Ball             = WinFormsUtil.GetIndex(CB_Ball);
            pk.Version          = WinFormsUtil.GetIndex(CB_GameOrigin);
            pk.Language         = WinFormsUtil.GetIndex(CB_Language);
            pk.Met_Level        = Util.ToInt32(TB_MetLevel.Text);
            pk.Met_Location     = WinFormsUtil.GetIndex(CB_MetLocation);
        }