This commit is contained in:
Kurt 2020-02-15 14:29:23 -08:00
parent 5e65df6758
commit 0d4cff81c6
4 changed files with 5 additions and 10 deletions

View file

@ -343,9 +343,7 @@ namespace PKHeX.Core
if ((int)Species.Dracozolt <= species && species <= (int)Species.Arctovish) // fossil
return false;
var pt = PersonalTable.SWSH;
if (((PersonalInfoSWSH) pt.GetFormeEntry(species, 0)).PokeDexIndex != 0)
return true;
return false;
return ((PersonalInfoSWSH)pt.GetFormeEntry(species, 0)).PokeDexIndex != 0;
}
private CheckResult VerifyBallEquals(LegalityAnalysis data, int ball) => GetResult(ball == data.pkm.Ball);

View file

@ -317,7 +317,6 @@ namespace PKHeX.Core
return Math.Abs(ia - ib) <= 7;
}
private static readonly int[] tradeEvo7b = { 064, 067, 075, 093 };
private static bool IsStarter(PKM pb7) => (pb7.Species == (int)Species.Pikachu && pb7.AltForm == 8) || (pb7.Species == (int)Species.Eevee && pb7.AltForm == 1);
private void VerifySWSHStats(LegalityAnalysis data, PK8 pk8)

View file

@ -93,6 +93,7 @@ namespace PKHeX.Core
get => BitConverter.ToUInt16(Data, Offset + 0x26);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, Offset + 0x26);
}
public int SuperMultiNPCPast
{
get => BitConverter.ToUInt16(Data, Offset + 0x16);
@ -104,6 +105,7 @@ namespace PKHeX.Core
get => BitConverter.ToUInt16(Data, Offset + 0x28);
set => BitConverter.GetBytes((ushort)value).CopyTo(Data, Offset + 0x28);
}
public int SuperMultiFriendsPast
{
get => BitConverter.ToUInt16(Data, Offset + 0x18);

View file

@ -40,7 +40,7 @@ namespace PKHeX.WinForms
Origin.CopyChangesFrom(SAV);
Close();
}
private ComboBox[] cbr;
private int ofsFly;
private int[] FlyDestC;
@ -722,10 +722,9 @@ namespace PKHeX.WinForms
private void ReadSubway()
{
sw = SAV.BattleSubway;
int swSuperCheck;
// Figure out the Super Checks
swSuperCheck = sw.SuperCheck;
var swSuperCheck = sw.SuperCheck;
if (swSuperCheck == 0x00)
{
CHK_SuperSingle.Checked = CHK_SuperDouble.Checked = CHK_SuperMulti.Checked = false;
@ -783,7 +782,6 @@ namespace PKHeX.WinForms
// Multi Friends
NUD_SMultiFriendsPast.Value = sw.SuperMultiFriendsPast;
NUD_SMultiFriendsRecord.Value = sw.SuperMultiFriendsRecord;
}
private void SaveSubway()
@ -824,8 +822,6 @@ namespace PKHeX.WinForms
// Multi Friends
sw.SuperMultiFriendsPast = (int)NUD_SMultiFriendsPast.Value;
sw.SuperMultiFriendsRecord = (int)NUD_SMultiFriendsRecord.Value;
}
}
}