mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Use version specific personal info
Handling for gen3 deoxys :) Closes #2082
This commit is contained in:
parent
5155e4d29b
commit
93c4ec9fec
3 changed files with 4 additions and 2 deletions
|
@ -6,5 +6,6 @@ namespace PKHeX.WinForms.Controls
|
|||
{
|
||||
void UpdateIVsGB(bool skipForm);
|
||||
PKM pkm { get; }
|
||||
SaveFile RequestSaveFile { get; }
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue