2019-11-29 05:13:53 +00:00
|
|
|
|
namespace PKHeX.Core
|
2019-11-16 01:34:18 +00:00
|
|
|
|
{
|
2019-11-29 05:13:53 +00:00
|
|
|
|
/// <summary>
|
2020-11-02 01:55:52 +00:00
|
|
|
|
/// Storage for the species that was fused into <see cref="Species.Kyurem"/> and <see cref="Species.Necrozma"/>.
|
2019-11-29 05:13:53 +00:00
|
|
|
|
/// </summary>
|
2019-11-16 01:34:18 +00:00
|
|
|
|
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;
|
2020-01-04 22:48:39 +00:00
|
|
|
|
return PokeCrypto.SIZE_8PARTY * slot;
|
2019-11-16 01:34:18 +00:00
|
|
|
|
}
|
2020-10-24 18:09:29 +00:00
|
|
|
|
|
|
|
|
|
public PK8 Kyurem
|
|
|
|
|
{
|
|
|
|
|
get => (PK8) SAV.GetStoredSlot(Data, GetFusedSlotOffset(0));
|
|
|
|
|
set => value.EncryptedBoxData.CopyTo(Data, GetFusedSlotOffset(0));
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-02 01:55:52 +00:00
|
|
|
|
public PK8 NecrozmaSolgaleo
|
2020-10-24 18:09:29 +00:00
|
|
|
|
{
|
|
|
|
|
get => (PK8)SAV.GetStoredSlot(Data, GetFusedSlotOffset(1));
|
|
|
|
|
set => value.EncryptedBoxData.CopyTo(Data, GetFusedSlotOffset(1));
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-02 01:55:52 +00:00
|
|
|
|
public PK8 NecrozmaLunala
|
2020-10-24 18:09:29 +00:00
|
|
|
|
{
|
|
|
|
|
get => (PK8)SAV.GetStoredSlot(Data, GetFusedSlotOffset(2));
|
|
|
|
|
set => value.EncryptedBoxData.CopyTo(Data, GetFusedSlotOffset(2));
|
|
|
|
|
}
|
2019-11-16 01:34:18 +00:00
|
|
|
|
}
|
2020-10-24 18:09:29 +00:00
|
|
|
|
}
|