mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 19:26:48 -05:00
Display raid seed for valid SW/SH raids
Yay leadslot for making this possible Sure we do a little bit of extra work (checking seed twice) but it's negligible overall.
This commit is contained in:
@@ -52,7 +52,7 @@ public PIDIV(PIDType type, ulong seed)
|
||||
#endif
|
||||
public bool IsClassicMethod() => Type.IsClassicMethod();
|
||||
|
||||
public bool IsSeed64() => false;
|
||||
public bool IsSeed64() => Type is PIDType.Raid8;
|
||||
|
||||
public PIDIV AsEncounteredVia(LeadSeed condition) => this with { Lead = condition.Lead, EncounterSeed = condition.Seed };
|
||||
}
|
||||
|
||||
@@ -127,6 +127,11 @@ public override void Verify(LegalityAnalysis data)
|
||||
if (!valid)
|
||||
data.AddLine(GetInvalid(LPIDTypeMismatch));
|
||||
}
|
||||
else if (enc is ISeedCorrelation64<PKM> s64)
|
||||
{
|
||||
if (s64.TryGetSeed(pk, out var seed))
|
||||
data.Info.PIDIV = new PIDIV(PIDType.Raid8, seed);
|
||||
}
|
||||
else if (enc is IMasteryInitialMoveShop8 m)
|
||||
{
|
||||
if (!m.IsForcedMasteryCorrect(pk))
|
||||
|
||||
Reference in New Issue
Block a user