Skip to content

Commit

Permalink
Update met date & location when toggling IsEgg via GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed Dec 3, 2021
1 parent 9545424 commit e48c81f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs
Expand Up @@ -1457,10 +1457,16 @@ private void UpdateIsEgg(object sender, EventArgs e)

if (CB_EggLocation.SelectedIndex == 0)
{
CAL_MetDate.Value = DateTime.Now;
CAL_EggDate.Value = new DateTime(2000, 01, 01);
CHK_AsEgg.Checked = false;
GB_EggConditions.Enabled = false;
}
else
{
CAL_MetDate.Value = CAL_EggDate.Value;
CB_MetLocation.SelectedValue = EncounterSuggestion.GetSuggestedEggMetLocation(Entity);
}

if (TB_Nickname.Text == SpeciesName.GetSpeciesNameGeneration(0, WinFormsUtil.GetIndex(CB_Language), Entity.Format))
CHK_Nicknamed.Checked = false;
Expand Down

0 comments on commit e48c81f

Please sign in to comment.