mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-19 17:03:12 +00:00
8a2a25fde1
Adds a wild area Raid den detail editor like mainland/armor raids.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
namespace PKHeX.Core
|
|
{
|
|
/// <summary>
|
|
/// Storage for the species that was fused into <see cref="Species.Kyurem"/>, <see cref="Species.Necrozma"/>, <see cref="Species.Calyrex"/>.
|
|
/// </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;
|
|
}
|
|
|
|
public PK8 Kyurem
|
|
{
|
|
get => (PK8) SAV.GetStoredSlot(Data, GetFusedSlotOffset(0));
|
|
set => value.EncryptedBoxData.CopyTo(Data, GetFusedSlotOffset(0));
|
|
}
|
|
|
|
public PK8 Necrozma
|
|
{
|
|
get => (PK8)SAV.GetStoredSlot(Data, GetFusedSlotOffset(1));
|
|
set => value.EncryptedBoxData.CopyTo(Data, GetFusedSlotOffset(1));
|
|
}
|
|
|
|
public PK8 Calyrex
|
|
{
|
|
get => (PK8)SAV.GetStoredSlot(Data, GetFusedSlotOffset(2));
|
|
set => value.EncryptedBoxData.CopyTo(Data, GetFusedSlotOffset(2));
|
|
}
|
|
}
|
|
}
|