Add hgss pokewalker stored pk4 fetch

ty atrius
This commit is contained in:
Kurt 2021-05-25 10:07:14 -07:00
parent 02605b402d
commit 236fd2943f
2 changed files with 5 additions and 1 deletions

View file

@ -76,10 +76,13 @@ namespace PKHeX.Core
private static List<SlotInfoMisc> GetExtraSlots4(SAV4 sav)
{
return new()
var list = new List<SlotInfoMisc>
{
new SlotInfoMisc(sav.General, 0, sav.GTS) {Type = StorageSlotType.GTS },
};
if (sav is SAV4HGSS)
list.Add(new SlotInfoMisc(sav.General, 1, SAV4HGSS.WalkerPair) {Type = StorageSlotType.Misc});
return list;
}
private static List<SlotInfoMisc> GetExtraSlots5(SAV5 sav)

View file

@ -223,6 +223,7 @@ namespace PKHeX.Core
public void SetApricornCount(int i, int count) => General[0xE558 + i] = (byte)count;
// Pokewalker
public const int WalkerPair = 0xE5E0;
private const int OFS_WALKER = 0xE704;
public uint PokewalkerSteps { get => BitConverter.ToUInt32(General, OFS_WALKER); set => SetData(General, BitConverter.GetBytes(value), OFS_WALKER); }