mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 12:35:20 -05:00
add 7->8 transfer legality check
currently flags anything transferred as illegal, which is the right thing to do until home is released.
This commit is contained in:
parent
f47382e34f
commit
7013d4f0c8
|
|
@ -232,6 +232,8 @@ private void ParsePK8()
|
|||
if (pkm.VC)
|
||||
UpdateVCTransferInfo();
|
||||
UpdateChecks();
|
||||
if (Info.Generation <= 7)
|
||||
Transfer.VerifyTransferLegalityG8(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -105,6 +105,10 @@ public static partial class Legal
|
|||
{
|
||||
};
|
||||
|
||||
internal static readonly HashSet<int> TransferrableGalar = new HashSet<int>
|
||||
{
|
||||
};
|
||||
|
||||
#region Unreleased Items
|
||||
internal static readonly HashSet<int> UnreleasedHeldItems_8 = new HashSet<int>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -101,6 +101,16 @@ public void VerifyTransferLegalityG4(LegalityAnalysis data)
|
|||
}
|
||||
}
|
||||
|
||||
public void VerifyTransferLegalityG8(LegalityAnalysis data)
|
||||
{
|
||||
var pkm = data.pkm;
|
||||
int species = pkm.Species;
|
||||
if (!Legal.TransferrableGalar.Contains(species))
|
||||
data.AddLine(GetInvalid(LTransferBad));
|
||||
|
||||
// todo: alternate forms disallowed?
|
||||
}
|
||||
|
||||
public IEnumerable<CheckResult> VerifyVCEncounter(PKM pkm, IEncounterable encounter, ILocation transfer, IList<CheckMoveResult> Moves)
|
||||
{
|
||||
// Check existing EncounterMatch
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user