From 13669ef7d7cd9630a0f9001cf620edea569efafd Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Fri, 2 Sep 2016 09:54:17 -0700 Subject: [PATCH] GiveAll medals 0->30->36 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #213 Distribution medals only given if the Pokémon has Secret Training unlocked. Clicking Give All with no medals will give 30, then clicking again will give the final 6. Of course if the Pokémon already had it unlocked but not 30 it will bump to 36, but it's up to the user to None/Give as desired. --- PKHeX/Subforms/PKM Editors/SuperTrainingEditor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PKHeX/Subforms/PKM Editors/SuperTrainingEditor.cs b/PKHeX/Subforms/PKM Editors/SuperTrainingEditor.cs index d80df49e2..87fbbde09 100644 --- a/PKHeX/Subforms/PKM Editors/SuperTrainingEditor.cs +++ b/PKHeX/Subforms/PKM Editors/SuperTrainingEditor.cs @@ -134,12 +134,14 @@ public RegimenInfo(string name, bool completedRegimen) private void B_All_Click(object sender, EventArgs e) { + if (CHK_SecretUnlocked.Checked) // only give dist if Secret is Unlocked (None -> All -> All*) + foreach (var c in TLP_DistSuperTrain.Controls.OfType()) + c.Checked = true; + CHK_SecretUnlocked.Checked = true; CHK_SecretComplete.Checked = true; foreach (var c in TLP_SuperTrain.Controls.OfType()) c.Checked = true; - foreach (var c in TLP_DistSuperTrain.Controls.OfType()) - c.Checked = true; } private void B_None_Click(object sender, EventArgs e) {