Add TMs to Item param list

Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
This commit is contained in:
Kurt 2021-07-03 13:18:51 -07:00
parent 9e665034b7
commit 8188208ca3

View file

@ -229,8 +229,13 @@ namespace PKHeX.Core
{ {
return format switch return format switch
{ {
6 or 7 => Legal.HeldItem_AO.Distinct().Concat(KeyItemArgValues).Where(z => z < Legal.MaxItemID_6_AO), 6 or 7 => Legal.HeldItem_AO.Distinct()
8 => Legal.HeldItem_AO.Concat(Legal.HeldItems_SWSH).Distinct().Concat(KeyItemArgValues) .Concat(KeyItemArgValues)
.Concat(Legal.TMHM_AO.Take(100).Select(z => (ushort)z))
.Where(z => z < Legal.MaxItemID_6_AO),
8 => Legal.HeldItem_AO.Concat(Legal.HeldItems_SWSH).Distinct()
.Concat(KeyItemArgValues)
.Concat(Legal.TMHM_AO.Take(100).Select(z => (ushort)z))
.Where(z => z < Legal.MaxItemID_8_R2), .Where(z => z < Legal.MaxItemID_8_R2),
_ => System.Array.Empty<ushort>(), _ => System.Array.Empty<ushort>(),
}; };