mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 02:55:46 -05:00
Flag nonparsed
removed parsedvalid/invalid, unnecessary I guess
This commit is contained in:
@@ -25,8 +25,6 @@ public partial class LegalityAnalysis
|
||||
public readonly bool Valid;
|
||||
private readonly PersonalInfo PersonalInfo;
|
||||
public LegalInfo Info { get; private set; }
|
||||
public bool ParsedValid => Parsed && Valid;
|
||||
public bool ParsedInvalid => Parsed && !Valid;
|
||||
public string Report(bool verbose = false) => verbose ? GetVerboseLegalityReport() : GetLegalityReport();
|
||||
private IEnumerable<int> AllSuggestedMoves
|
||||
{
|
||||
|
||||
@@ -503,9 +503,9 @@ private IEnumerable<PKM> SearchDatabase()
|
||||
slotSelected = -1; // reset the slot last viewed
|
||||
|
||||
if (Menu_SearchLegal.Checked && !Menu_SearchIllegal.Checked)
|
||||
res = res.Where(pk => new LegalityAnalysis(pk).ParsedValid);
|
||||
res = res.Where(pk => new LegalityAnalysis(pk).Valid);
|
||||
if (!Menu_SearchLegal.Checked && Menu_SearchIllegal.Checked)
|
||||
res = res.Where(pk => new LegalityAnalysis(pk).ParsedInvalid);
|
||||
res = res.Where(pk => !new LegalityAnalysis(pk).Valid);
|
||||
|
||||
if (RTB_Instructions.Lines.Any(line => line.Length > 0))
|
||||
{
|
||||
|
||||
@@ -159,7 +159,7 @@ private static Image GetSprite(PKM pkm, SaveFile SAV, int box, int slot, bool fl
|
||||
if (box >= 0)
|
||||
pkm.Box = box;
|
||||
var la = new LegalityAnalysis(pkm, SAV.Personal);
|
||||
if (la.ParsedInvalid && pkm.Species != 0)
|
||||
if (!la.Valid && pkm.Species != 0)
|
||||
sprite = ImageUtil.LayerImage(sprite, Resources.warn, 0, 14, 1);
|
||||
}
|
||||
if (inBox) // in box
|
||||
|
||||
Reference in New Issue
Block a user