Use version specific personal info

Handling for gen3 deoxys :)
Closes #2082
This commit is contained in:
Kurt 2018-07-27 21:21:42 -07:00
parent 5155e4d29b
commit 93c4ec9fec
3 changed files with 4 additions and 2 deletions

View file

@ -6,5 +6,6 @@ namespace PKHeX.WinForms.Controls
{
void UpdateIVsGB(bool skipForm);
PKM pkm { get; }
SaveFile RequestSaveFile { get; }
}
}

View file

@ -90,7 +90,7 @@ namespace PKHeX.WinForms.Controls
private readonly PictureBox[] movePB, relearnPB;
private readonly ToolTip Tip3 = new ToolTip(), NatureTip = new ToolTip();
private SaveFile RequestSaveFile => SaveFileRequested?.Invoke(this, EventArgs.Empty);
public SaveFile RequestSaveFile => SaveFileRequested?.Invoke(this, EventArgs.Empty);
public bool PKMIsUnsaved => FieldsInitialized && FieldsLoaded && LastData?.Any(b => b != 0) == true && !LastData.SequenceEqual(CurrentPKM.Data);
public bool IsEmptyOrEgg => CHK_IsEgg.Checked || CB_Species.SelectedIndex == 0;

View file

@ -261,7 +261,8 @@ namespace PKHeX.WinForms.Controls
// Generate the stats.
if (!CHK_HackedStats.Checked || pkm.Stat_HPCurrent == 0) // no stats when initially loaded from non-partyformat slot
{
var pi = pkm.PersonalInfo;
var pt = MainEditor.RequestSaveFile.Personal;
var pi = pt.GetFormeEntry(pkm.Species, pkm.AltForm);
pkm.SetStats(pkm.GetStats(pi));
LoadBST(pi);
LoadPartyStats(pkm);