2015-12-28 05:26:07 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-05-07 03:38:55 +00:00
|
|
|
|
namespace PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Common logic for <see cref="PKM"/> data providing and manipulation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static class PKX
|
2015-12-28 05:26:07 +00:00
|
|
|
|
{
|
2022-05-07 03:38:55 +00:00
|
|
|
|
internal static readonly PersonalTable Personal = PersonalTable.LA;
|
|
|
|
|
public const int Generation = 8;
|
2022-06-04 02:08:46 +00:00
|
|
|
|
public const EntityContext Context = EntityContext.Gen8a;
|
2022-05-07 03:38:55 +00:00
|
|
|
|
|
2017-02-05 02:27:28 +00:00
|
|
|
|
/// <summary>
|
2022-05-07 03:38:55 +00:00
|
|
|
|
/// Reorders (in place) the input array of stats to have the Speed value last rather than before the SpA/SpD stats.
|
2017-02-05 02:27:28 +00:00
|
|
|
|
/// </summary>
|
2022-05-07 03:38:55 +00:00
|
|
|
|
/// <param name="value">Input array to reorder</param>
|
|
|
|
|
/// <returns>Same array, reordered.</returns>
|
|
|
|
|
public static void ReorderSpeedLast(Span<int> value)
|
2015-12-28 05:26:07 +00:00
|
|
|
|
{
|
2022-05-07 03:38:55 +00:00
|
|
|
|
var spe = value[3];
|
|
|
|
|
value[3] = value[4];
|
|
|
|
|
value[4] = value[5];
|
|
|
|
|
value[5] = spe;
|
2015-12-28 05:26:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|