diff --git a/PKHeX.WinForms/MainWindow/Main.Designer.cs b/PKHeX.WinForms/MainWindow/Main.Designer.cs index d305dddb2..036d79024 100644 --- a/PKHeX.WinForms/MainWindow/Main.Designer.cs +++ b/PKHeX.WinForms/MainWindow/Main.Designer.cs @@ -1597,16 +1597,8 @@ // this.NUD_Purification.Location = new System.Drawing.Point(110, 1); this.NUD_Purification.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0); - this.NUD_Purification.Maximum = new decimal(new int[] { - 0, - 0, - 0, - 0}); - this.NUD_Purification.Minimum = new decimal(new int[] { - 100, - 0, - 0, - -2147483648}); + this.NUD_Purification.Maximum = new decimal(int.MaxValue); + this.NUD_Purification.Minimum = new decimal(0); this.NUD_Purification.Name = "NUD_Purification"; this.NUD_Purification.Size = new System.Drawing.Size(51, 20); this.NUD_Purification.TabIndex = 103; diff --git a/PKHeX.WinForms/MainWindow/Main.cs b/PKHeX.WinForms/MainWindow/Main.cs index c13d6d77a..2d03f5da6 100644 --- a/PKHeX.WinForms/MainWindow/Main.cs +++ b/PKHeX.WinForms/MainWindow/Main.cs @@ -2975,7 +2975,7 @@ namespace PKHeX.WinForms if (!fieldsLoaded) return; fieldsLoaded = false; - CHK_Shadow.Checked = NUD_Purification.Value == 0; + CHK_Shadow.Checked = NUD_Purification.Value > 0; fieldsLoaded = true; } private void updateShadowCHK(object sender, EventArgs e) diff --git a/PKHeX.WinForms/MainWindow/MainCK3.cs b/PKHeX.WinForms/MainWindow/MainCK3.cs index 236427d92..c0bd39963 100644 --- a/PKHeX.WinForms/MainWindow/MainCK3.cs +++ b/PKHeX.WinForms/MainWindow/MainCK3.cs @@ -102,13 +102,11 @@ namespace PKHeX.WinForms if (ck3.ShadowID > 0) { int puri = ck3.Purification; - if (puri > NUD_Purification.Maximum) - puri = 0; - else if (puri < NUD_Purification.Minimum) + if (puri < NUD_Purification.Minimum) puri = (int)NUD_Purification.Minimum; NUD_Purification.Value = puri; - CHK_Shadow.Checked = puri < 0; + CHK_Shadow.Checked = puri > 0; NUD_ShadowID.Value = Math.Max(ck3.ShadowID, 0); } diff --git a/PKHeX.WinForms/MainWindow/MainXK3.cs b/PKHeX.WinForms/MainWindow/MainXK3.cs index 3731171f7..56b2c093e 100644 --- a/PKHeX.WinForms/MainWindow/MainXK3.cs +++ b/PKHeX.WinForms/MainWindow/MainXK3.cs @@ -102,13 +102,11 @@ namespace PKHeX.WinForms if (xk3.ShadowID > 0) { int puri = xk3.Purification; - if (puri > NUD_Purification.Maximum) - puri = 0; - else if (puri < NUD_Purification.Minimum) + if (puri < NUD_Purification.Minimum) puri = (int)NUD_Purification.Minimum; NUD_Purification.Value = puri; - CHK_Shadow.Checked = puri < 0; + CHK_Shadow.Checked = puri > 0; NUD_ShadowID.Value = Math.Max(xk3.ShadowID, 0); }