mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-01 21:36:43 -05:00
@@ -311,8 +311,10 @@ private void savePersonal()
|
||||
pkm.Color = (byte) (Convert.ToByte(CB_Color.SelectedIndex) | (Convert.ToByte(TB_RawColor.Text) & 0xF0));
|
||||
pkm.BaseEXP = Convert.ToUInt16(TB_BaseExp.Text);
|
||||
|
||||
pkm.Height = (int)Convert.ToDouble(TB_Height.Text)*100;
|
||||
pkm.Weight = (int)Convert.ToDouble(TB_Weight.Text)*10;
|
||||
decimal h; decimal.TryParse(TB_Height.Text, out h);
|
||||
decimal w; decimal.TryParse(TB_Weight.Text, out w);
|
||||
pkm.Height = (int)(h*100);
|
||||
pkm.Weight = (int)(w*10);
|
||||
|
||||
for (int i = 0; i < CLB_TMHM.Items.Count; i++)
|
||||
pkm.TMHM[i] = CLB_TMHM.GetItemChecked(i);
|
||||
|
||||
@@ -246,8 +246,10 @@ private void savePersonal()
|
||||
pkm.Color = (byte) (Convert.ToByte(CB_Color.SelectedIndex) | (Convert.ToByte(TB_RawColor.Text) & 0xF0));
|
||||
pkm.BaseEXP = Convert.ToUInt16(TB_BaseExp.Text);
|
||||
|
||||
pkm.Height = (int)Convert.ToDouble(TB_Height.Text)*100;
|
||||
pkm.Weight = (int)Convert.ToDouble(TB_Weight.Text)*10;
|
||||
decimal h; decimal.TryParse(TB_Height.Text, out h);
|
||||
decimal w; decimal.TryParse(TB_Weight.Text, out w);
|
||||
pkm.Height = (int)(h * 100);
|
||||
pkm.Weight = (int)(w * 10);
|
||||
|
||||
for (int i = 0; i < CLB_TMHM.Items.Count; i++)
|
||||
pkm.TMHM[i] = CLB_TMHM.GetItemChecked(i);
|
||||
|
||||
Reference in New Issue
Block a user