mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
Allow throw type changes to be saved
move SM/USUM branch inside the method closes #1695
This commit is contained in:
parent
5bc2e6da88
commit
eff8855729
1 changed files with 6 additions and 2 deletions
|
@ -155,6 +155,8 @@ namespace PKHeX.WinForms
|
|||
CB_AlolaTime.Enabled = false; // alola time doesn't exist yet
|
||||
else
|
||||
CB_AlolaTime.SelectedValue = (int)time;
|
||||
if (CB_AlolaTime.SelectedValue == null)
|
||||
CB_AlolaTime.Enabled = false;
|
||||
|
||||
NUD_M.Value = SAV.M;
|
||||
// Sanity Check Map Coordinates
|
||||
|
@ -337,8 +339,7 @@ namespace PKHeX.WinForms
|
|||
SaveBattleTree();
|
||||
SaveTrainerAppearance();
|
||||
SAV.DaysFromRefreshed = (byte)NUD_DaysFromRefreshed.Value;
|
||||
if (SAV.SM)
|
||||
SaveThrowType();
|
||||
SaveThrowType();
|
||||
|
||||
SAV.FestivalPlazaName = TB_PlazaName.Text;
|
||||
|
||||
|
@ -440,6 +441,9 @@ namespace PKHeX.WinForms
|
|||
if (CB_BallThrowType.SelectedIndex >= 0)
|
||||
SAV.BallThrowType = CB_BallThrowType.SelectedIndex;
|
||||
|
||||
if (!SAV.SM) // unlock flags are in flag editor instead
|
||||
return;
|
||||
|
||||
const int unlockStart = 292;
|
||||
const int learnedStart = 3479;
|
||||
for (int i = 2; i < BattleStyles.Length; i++)
|
||||
|
|
Loading…
Add table
Reference in a new issue