2021-01-13 06:38:18 +00:00
|
|
|
|
using static PKHeX.Core.Species;
|
2016-09-04 21:00:52 +00:00
|
|
|
|
|
2017-01-08 07:54:09 +00:00
|
|
|
|
namespace PKHeX.Core
|
2016-09-04 21:00:52 +00:00
|
|
|
|
{
|
|
|
|
|
public static partial class Legal
|
|
|
|
|
{
|
2016-10-24 04:57:04 +00:00
|
|
|
|
internal const int MaxSpeciesID_2 = 251;
|
2017-01-27 03:18:20 +00:00
|
|
|
|
internal const int MaxMoveID_2 = 251;
|
|
|
|
|
internal const int MaxItemID_2 = 255;
|
|
|
|
|
internal const int MaxAbilityID_2 = 0;
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2016-09-04 21:00:52 +00:00
|
|
|
|
internal static readonly ushort[] Pouch_Items_GSC = {
|
2021-10-08 19:42:32 +00:00
|
|
|
|
3, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 51, 52, 53, 57, 60, 62, 63, 64, 65, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 117, 118, 119, 121, 122, 123, 124, 125, 126, 131, 132, 138, 139, 140, 143, 144, 146, 150, 151, 152, 156, 158, 163, 167, 168, 169, 170, 172, 173, 174, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
|
2016-09-04 21:00:52 +00:00
|
|
|
|
};
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2016-09-04 21:00:52 +00:00
|
|
|
|
internal static readonly ushort[] Pouch_Ball_GSC = {
|
2021-10-08 19:42:32 +00:00
|
|
|
|
1, 2, 4, 5, 157, 159, 160, 161, 164, 165, 166,
|
2016-09-04 21:00:52 +00:00
|
|
|
|
};
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2016-09-04 21:00:52 +00:00
|
|
|
|
internal static readonly ushort[] Pouch_Key_GS = {
|
2021-10-08 19:42:32 +00:00
|
|
|
|
7, 54, 55, 58, 59, 61, 66, 67, 68, 69, 71, 127, 128, 130, 133, 134, 175, 178,
|
2016-09-04 21:00:52 +00:00
|
|
|
|
};
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2021-01-03 03:11:46 +00:00
|
|
|
|
internal static readonly ushort[] Pouch_Key_C = ArrayUtil.ConcatAll(Pouch_Key_GS, new ushort[]{70, 115, 116, 129});
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2016-09-04 21:00:52 +00:00
|
|
|
|
internal static readonly ushort[] Pouch_TMHM_GSC = {
|
2021-10-08 19:42:32 +00:00
|
|
|
|
191, 192, 193, 194, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
2016-09-04 21:00:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2020-01-25 07:29:45 +00:00
|
|
|
|
internal static readonly ushort[] HeldItems_GSC = ArrayUtil.ConcatAll(Pouch_Items_GSC, Pouch_Ball_GSC, Pouch_TMHM_GSC);
|
2017-01-08 07:54:09 +00:00
|
|
|
|
|
2017-02-26 17:36:53 +00:00
|
|
|
|
internal static readonly int[] TMHM_GSC =
|
|
|
|
|
{
|
|
|
|
|
223, 029, 174, 205, 046, 092, 192, 249, 244, 237,
|
|
|
|
|
241, 230, 173, 059, 063, 196, 182, 240, 202, 203,
|
|
|
|
|
218, 076, 231, 225, 087, 089, 216, 091, 094, 247,
|
|
|
|
|
189, 104, 008, 207, 214, 188, 201, 126, 129, 111,
|
|
|
|
|
009, 138, 197, 156, 213, 168, 211, 007, 210, 171,
|
|
|
|
|
|
2021-10-08 19:42:32 +00:00
|
|
|
|
015, 019, 057, 070, 148, 250, 127,
|
2017-02-26 17:36:53 +00:00
|
|
|
|
};
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2021-09-08 03:57:19 +00:00
|
|
|
|
internal static readonly int[] Tutors_GSC = { (int)Move.Flamethrower, (int)Move.Thunderbolt, (int)Move.IceBeam };
|
2017-02-15 23:05:13 +00:00
|
|
|
|
|
2021-01-13 06:38:18 +00:00
|
|
|
|
internal static readonly bool[] ReleasedHeldItems_2 = GetPermitList(MaxItemID_2, HeldItems_GSC);
|
2018-09-15 05:37:47 +00:00
|
|
|
|
|
2021-01-02 08:46:09 +00:00
|
|
|
|
internal static bool TransferSpeciesDefaultAbilityGen2(int species)
|
2018-02-12 04:48:36 +00:00
|
|
|
|
{
|
2021-01-02 08:46:09 +00:00
|
|
|
|
System.Diagnostics.Debug.Assert((uint)species <= MaxSpeciesID_2);
|
2021-01-13 06:38:18 +00:00
|
|
|
|
return species is (int)Gastly or (int)Haunter or (int)Gengar
|
|
|
|
|
or (int)Koffing or (int)Weezing
|
|
|
|
|
or (int)Misdreavus or (int)Unown
|
|
|
|
|
or (int)Mew or (int)Celebi;
|
2021-01-02 08:46:09 +00:00
|
|
|
|
}
|
2016-09-04 21:00:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|