mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Move fallback pressure check to near end
This commit is contained in:
parent
1241e6eff6
commit
10e108939b
2 changed files with 10 additions and 10 deletions
|
@ -286,11 +286,6 @@ public static class MethodJ
|
|||
{ result = new(pressure, PressureHustleSpirit); return true; }
|
||||
result = default; return false;
|
||||
}
|
||||
if (ctx.Encounter.PressureLevel <= ctx.LevelMax) // Can be boosted, or not.
|
||||
{
|
||||
if (IsSlotValidHustleVital(ctx, out var pressure))
|
||||
{ result = new(pressure, PressureHustleSpirit); return true; }
|
||||
}
|
||||
}
|
||||
|
||||
if (IsSlotValidRegular(ctx, out uint seed))
|
||||
|
@ -310,6 +305,11 @@ public static class MethodJ
|
|||
{ result = new(seed, lead); return true; }
|
||||
if (IsSlotValidIntimidate(ctx, out seed))
|
||||
{ result = new(seed, IntimidateKeenEyeFail); return true; }
|
||||
if (ctx.Encounter.PressureLevel <= ctx.LevelMax) // Can be boosted, or not.
|
||||
{
|
||||
if (IsSlotValidHustleVital(ctx, out var pressure))
|
||||
{ result = new(pressure, PressureHustleSpirit); return true; }
|
||||
}
|
||||
|
||||
if (CanRadar(ctx.Encounter))
|
||||
{ result = new(ctx.Seed1, Radar); return true; }
|
||||
|
|
|
@ -308,11 +308,6 @@ public static class MethodK
|
|||
{ result = new(pressure, PressureHustleSpirit); return true; }
|
||||
result = default; return false;
|
||||
}
|
||||
if (ctx.Encounter.PressureLevel <= ctx.LevelMax) // Can be boosted, or not.
|
||||
{
|
||||
if (IsSlotValidHustleVital(ctx, out var pressure))
|
||||
{ result = new(pressure, PressureHustleSpirit); return true; }
|
||||
}
|
||||
}
|
||||
|
||||
if (IsSlotValidRegular(ctx, out uint seed))
|
||||
|
@ -332,6 +327,11 @@ public static class MethodK
|
|||
{ result = new(seed, sm); return true; }
|
||||
if (IsSlotValidIntimidate(ctx, out seed))
|
||||
{ result = new(seed, IntimidateKeenEyeFail); return true; }
|
||||
if (ctx.Encounter.PressureLevel <= ctx.LevelMax) // Can be boosted, or not.
|
||||
{
|
||||
if (IsSlotValidHustleVital(ctx, out var pressure))
|
||||
{ result = new(pressure, PressureHustleSpirit); return true; }
|
||||
}
|
||||
|
||||
result = default; return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue