GiveAll medals 0->30->36

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.
This commit is contained in:
Kaphotics
2016-09-02 09:54:17 -07:00
committed by GitHub
parent 0ca4339169
commit 13669ef7d7

View File

@@ -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<CheckBox>())
c.Checked = true;
CHK_SecretUnlocked.Checked = true;
CHK_SecretComplete.Checked = true;
foreach (var c in TLP_SuperTrain.Controls.OfType<CheckBox>())
c.Checked = true;
foreach (var c in TLP_DistSuperTrain.Controls.OfType<CheckBox>())
c.Checked = true;
}
private void B_None_Click(object sender, EventArgs e)
{