mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-28 05:13:13 +00:00
e21d108fb2
All logic in PokeCrypto is separate from the rest of the PKHeX.Core library; makes it easy to just rip this portion out and reuse in other projects without needing the entirety of PKHeX.Core logic optimize out the CheckEncrypted to the actual path, separate methods. Only usages of this method were with hardcoded Format values, so no impact
17 lines
No EOL
514 B
C#
17 lines
No EOL
514 B
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Storage for the Fused species, <see cref="Species.Kyurem"/>, <see cref="Species.Solgaleo"/>, <see cref="Species.Lunala"/>
|
|
/// </summary>
|
|
public sealed class Fused8 : SaveBlock
|
|
{
|
|
public Fused8(SaveFile sav, SCBlock block) : base(sav, block.Data) { }
|
|
|
|
public static int GetFusedSlotOffset(int slot)
|
|
{
|
|
if ((uint)slot >= 3)
|
|
return -1;
|
|
return PokeCrypto.SIZE_8PARTY * slot;
|
|
}
|
|
}
|
|
} |