mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-08 15:25:35 -05:00
Clean check for overworld IVs
Closes #3150 Still need to remove some symbol encounter tables that are unused
This commit is contained in:
@@ -52,7 +52,9 @@ public OverworldCorrelation8Requirement GetRequirement(PKM pk)
|
||||
|
||||
public bool IsOverworldCorrelationCorrect(PKM pk)
|
||||
{
|
||||
return Overworld8RNG.ValidateOverworldEncounter(pk);
|
||||
var area = (EncounterArea8) Area;
|
||||
var flawless = area.PermitCrossover ? -1 : 0;
|
||||
return Overworld8RNG.ValidateOverworldEncounter(pk, flawless: flawless);
|
||||
}
|
||||
|
||||
public override EncounterMatchRating GetMatchRating(PKM pkm)
|
||||
|
||||
@@ -175,9 +175,8 @@ private static bool IsValidSequence(PKM pk, int[] template, ref Xoroshiro128Plus
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
if (template[i] != UNSET)
|
||||
continue;
|
||||
var expect = (int) rng.NextInt(32);
|
||||
var temp = template[i];
|
||||
var expect = temp == UNSET ? (int)rng.NextInt(32) : temp;
|
||||
var actual = i switch
|
||||
{
|
||||
0 => pk.IV_HP,
|
||||
|
||||
Reference in New Issue
Block a user