mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
Add hgss pokewalker stored pk4 fetch
ty atrius
This commit is contained in:
parent
02605b402d
commit
236fd2943f
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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); }
|
||||
|
|
Loading…
Reference in a new issue