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:
Kurt
2024-02-23 20:54:56 -06:00
parent 8da8f34896
commit 43cd9300fb
2 changed files with 6 additions and 1 deletions

View File

@@ -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 };
}

View File

@@ -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))