mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-29 08:17:25 -05:00
Merge pull request #115 from chenzw95/legality-hatchmemory
Checks for OT memory 2: hatched from an egg
This commit is contained in:
commit
d2dbc9f2ed
|
|
@ -696,6 +696,10 @@ private LegalityCheck verifyOTMemory()
|
|||
}
|
||||
switch (pk6.OT_Memory)
|
||||
{
|
||||
case 2: // {0} hatched from an Egg and saw {1} for the first time at... {2}. {4} that {3}.
|
||||
if (!pk6.WasEgg)
|
||||
return new LegalityCheck(Severity.Invalid, "OT Memory: OT did not hatch this.");
|
||||
return new LegalityCheck(Severity.Valid, "OT Memory is valid.");
|
||||
case 4: // {0} became {1}’s friend when it arrived via Link Trade at... {2}. {4} that {3}.
|
||||
return new LegalityCheck(Severity.Invalid, "OT Memory: Link Trade is not a valid first memory.");
|
||||
case 6: // {0} went to the Pokémon Center in {2} with {1} and had its tired body healed there. {4} that {3}.
|
||||
|
|
@ -722,7 +726,7 @@ private LegalityCheck verifyOTMemory()
|
|||
private LegalityCheck verifyHTMemory()
|
||||
{
|
||||
if (!History.Valid)
|
||||
return new LegalityCheck(Severity.Valid, "Skipped OT Memory check as History is not valid.");
|
||||
return new LegalityCheck(Severity.Valid, "Skipped HT Memory check as History is not valid.");
|
||||
|
||||
switch (pk6.HT_Memory)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user