Next seed if activation fails

ty santacrab for pointing this out
This commit is contained in:
Kurt 2024-03-21 21:22:56 -05:00
parent 1faef958a7
commit 84363eb8eb
3 changed files with 9 additions and 0 deletions

View file

@ -22,7 +22,10 @@ public static class GenerateMethodH
{
var check = new LeadSeed(seed, LeadRequired.None);
if (!MethodH.CheckEncounterActivation(enc, ref check))
{
seed = LCRNG.Next(seed);
continue;
}
}
var esv = LCRNG.Next16(ref seed) % 100;
if (esv < min || esv > max)

View file

@ -32,7 +32,10 @@ public static class GenerateMethodJ
{
var check = new LeadSeed(seed, LeadRequired.None);
if (!MethodJ.CheckEncounterActivation(enc, ref check))
{
seed = LCRNG.Next(seed);
continue;
}
}
var esv = LCRNG.Next16(ref seed) / 656;
if (esv < min || esv > max)

View file

@ -33,7 +33,10 @@ public static class GenerateMethodK
{
var check = new LeadSeed(seed, LeadRequired.None);
if (!MethodK.CheckEncounterActivation(enc, ref check))
{
seed = LCRNG.Next(seed);
continue;
}
}
var esv = LCRNG.Next16(ref seed) % modulo;
if (esv < min || esv > max)