Change "Some" EV train rating from [0,127] to (0,127]

This commit is contained in:
Kurt 2021-06-10 19:18:58 -07:00
parent 6b6a517214
commit 24d6c0d713
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ namespace PKHeX.Core.Searching
public static IEnumerable<PKM> FilterByEVs(IEnumerable<PKM> res, int option) => option switch public static IEnumerable<PKM> FilterByEVs(IEnumerable<PKM> res, int option) => option switch
{ {
1 => res.Where(pk => pk.EVTotal == 0), // None (0) 1 => res.Where(pk => pk.EVTotal == 0), // None (0)
2 => res.Where(pk => pk.EVTotal < 128), // Some (127-0) 2 => res.Where(pk => pk.EVTotal is (not 0) and < 128), // Some (127-0)
3 => res.Where(pk => pk.EVTotal is >= 128 and < 508), // Half (128-507) 3 => res.Where(pk => pk.EVTotal is >= 128 and < 508), // Half (128-507)
4 => res.Where(pk => pk.EVTotal >= 508), // Full (508+) 4 => res.Where(pk => pk.EVTotal >= 508), // Full (508+)
_ => res _ => res

View file

@ -463,7 +463,7 @@
this.CB_EVTrain.Items.AddRange(new object[] { this.CB_EVTrain.Items.AddRange(new object[] {
"Any", "Any",
"None (0)", "None (0)",
"Some (127-0)", "Some (127-1)",
"Half (128-507)", "Half (128-507)",
"Full (508+)"}); "Full (508+)"});
this.CB_EVTrain.Location = new System.Drawing.Point(83, 146); this.CB_EVTrain.Location = new System.Drawing.Point(83, 146);