mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 02:19:12 -05:00
Add gen1 shininess editing
Since it's the same as gen2's checks, and gen1->7 is now possible...
This commit is contained in:
@@ -1060,9 +1060,6 @@ private void openSAV(SaveFile sav, string path)
|
||||
FLP_PKRS.Visible = FLP_EggPKRSRight.Visible = SAV.Generation >= 2;
|
||||
Label_OTGender.Visible = SAV.Generation >= 2;
|
||||
|
||||
if (SAV.Generation == 1)
|
||||
Label_IsShiny.Visible = false;
|
||||
|
||||
if (SAV.Version == GameVersion.BATREV)
|
||||
{
|
||||
L_SaveSlot.Visible = CB_SaveSlot.Visible = true;
|
||||
@@ -1581,8 +1578,8 @@ private void setIsShiny(object sender)
|
||||
bool isShiny = pkm.IsShiny;
|
||||
|
||||
// Set the Controls
|
||||
BTN_Shinytize.Visible = BTN_Shinytize.Enabled = !isShiny && SAV.Generation > 1;
|
||||
Label_IsShiny.Visible = isShiny && SAV.Generation > 1;
|
||||
BTN_Shinytize.Visible = BTN_Shinytize.Enabled = !isShiny;
|
||||
Label_IsShiny.Visible = isShiny;
|
||||
|
||||
// Refresh Markings (for Shiny Star if applicable)
|
||||
setMarkings();
|
||||
@@ -2064,9 +2061,9 @@ private void updateIVs(object sender, EventArgs e)
|
||||
: (pkm.Gender == 1 ? Color.Red : Color.Blue);
|
||||
if (pkm.Species == 201 && e != null) // Unown
|
||||
CB_Form.SelectedIndex = pkm.AltForm;
|
||||
setIsShiny(null);
|
||||
getQuickFiller(dragout);
|
||||
}
|
||||
setIsShiny(null);
|
||||
getQuickFiller(dragout);
|
||||
}
|
||||
|
||||
CB_HPType.SelectedValue = pkm.HPType;
|
||||
|
||||
@@ -231,8 +231,8 @@ public override bool CanHoldItem(ushort[] ValidArray)
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool IsShiny => IV_DEF == 10 && IV_SPE == 10 && IV_SPC == 10 && (IV_ATK & 2) == 2;
|
||||
public override ushort Sanity { get { return 0; } set { } }
|
||||
|
||||
public override bool ChecksumValid => true;
|
||||
public override ushort Checksum { get { return 0; } set { } }
|
||||
public override int Language { get { return 0; } set { } }
|
||||
|
||||
Reference in New Issue
Block a user