mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 16:06:48 -05:00
Minor tweaks
should be it :( :(
This commit is contained in:
@@ -103,8 +103,11 @@ private static bool GetIVsAboveMinimum(PKM pkm, int min)
|
||||
return pkm.IV_HP >> 1 >= min; // HP
|
||||
}
|
||||
|
||||
public static bool GetIVsValid(PKM pkm)
|
||||
public bool GetIVsValid(PKM pkm)
|
||||
{
|
||||
if (!GetIVsAboveMinimum(pkm))
|
||||
return false;
|
||||
|
||||
// HP * 2 | 1 -> HP
|
||||
// ATK * 2 | 1 -> ATK&SPA
|
||||
// DEF * 2 | 1 -> DEF&SPD
|
||||
|
||||
@@ -109,7 +109,7 @@ private void VerifyIVsStatic(LegalityAnalysis data, EncounterStatic s)
|
||||
|
||||
private void VerifyIVsGoTransfer(LegalityAnalysis data)
|
||||
{
|
||||
if (data.EncounterMatch is EncounterSlotGO && !EncounterSlotGO.GetIVsValid(data.pkm))
|
||||
if (data.EncounterMatch is EncounterSlotGO g && !g.GetIVsValid(data.pkm))
|
||||
data.AddLine(GetInvalid(LIVNotCorrect));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user