2018-08-06 03:27:25 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-09-07 20:51:13 +00:00
|
|
|
|
internal sealed class SAV1Offsets
|
2018-08-06 03:27:25 +00:00
|
|
|
|
{
|
|
|
|
|
public static readonly SAV1Offsets INT = GetINT();
|
|
|
|
|
public static readonly SAV1Offsets JPN = GetJPN();
|
|
|
|
|
|
2020-12-22 01:17:56 +00:00
|
|
|
|
private static SAV1Offsets GetINT() => new()
|
2018-08-06 03:27:25 +00:00
|
|
|
|
{
|
|
|
|
|
DexCaught = 0x25A3,
|
|
|
|
|
DexSeen = 0x25B6,
|
|
|
|
|
Items = 0x25C9,
|
|
|
|
|
Money = 0x25F3,
|
2021-10-10 23:11:46 +00:00
|
|
|
|
Rival = 0x25F6,
|
2018-08-06 03:27:25 +00:00
|
|
|
|
Options = 0x2601,
|
|
|
|
|
Badges = 0x2602,
|
|
|
|
|
TID = 0x2605,
|
|
|
|
|
PikaFriendship = 0x271C,
|
2019-12-21 23:17:05 +00:00
|
|
|
|
PikaBeachScore = 0x2741,
|
2019-06-09 21:15:42 +00:00
|
|
|
|
PrinterBrightness = 0x2744,
|
2018-08-06 03:27:25 +00:00
|
|
|
|
PCItems = 0x27E6,
|
|
|
|
|
CurrentBoxIndex = 0x284C,
|
|
|
|
|
Coin = 0x2850,
|
|
|
|
|
ObjectSpawnFlags = 0x2852, // 2 bytes after Coin
|
|
|
|
|
Starter = 0x29C3,
|
|
|
|
|
EventFlag = 0x29F3,
|
|
|
|
|
PlayTime = 0x2CED,
|
|
|
|
|
Daycare = 0x2CF4,
|
|
|
|
|
Party = 0x2F2C,
|
|
|
|
|
CurrentBox = 0x30C0,
|
|
|
|
|
ChecksumOfs = 0x3523,
|
|
|
|
|
};
|
|
|
|
|
|
2020-12-22 01:17:56 +00:00
|
|
|
|
private static SAV1Offsets GetJPN() => new()
|
2018-08-06 03:27:25 +00:00
|
|
|
|
{
|
|
|
|
|
DexCaught = 0x259E,
|
|
|
|
|
DexSeen = 0x25B1,
|
|
|
|
|
Items = 0x25C4,
|
|
|
|
|
Money = 0x25EE,
|
2021-10-10 23:11:46 +00:00
|
|
|
|
Rival = 0x25F1,
|
2018-08-06 03:27:25 +00:00
|
|
|
|
Options = 0x25F7,
|
|
|
|
|
Badges = 0x25F8,
|
|
|
|
|
TID = 0x25FB,
|
|
|
|
|
PikaFriendship = 0x2712,
|
2019-12-21 23:17:05 +00:00
|
|
|
|
PikaBeachScore = 0x2737,
|
2019-06-09 21:15:42 +00:00
|
|
|
|
PrinterBrightness = 0x273A,
|
2018-08-06 03:27:25 +00:00
|
|
|
|
PCItems = 0x27DC,
|
|
|
|
|
CurrentBoxIndex = 0x2842,
|
|
|
|
|
Coin = 0x2846,
|
|
|
|
|
ObjectSpawnFlags = 0x2848, // 2 bytes after Coin
|
|
|
|
|
Starter = 0x29B9,
|
|
|
|
|
EventFlag = 0x29E9,
|
|
|
|
|
PlayTime = 0x2CA0,
|
|
|
|
|
Daycare = 0x2CA7,
|
|
|
|
|
Party = 0x2ED5,
|
|
|
|
|
CurrentBox = 0x302D,
|
|
|
|
|
ChecksumOfs = 0x3594,
|
|
|
|
|
};
|
|
|
|
|
|
2019-03-30 23:21:45 +00:00
|
|
|
|
public int OT { get; } = 0x2598;
|
2020-12-22 01:48:08 +00:00
|
|
|
|
public int DexCaught { get; private init; }
|
|
|
|
|
public int DexSeen { get; private init; }
|
|
|
|
|
public int Items { get; private init; }
|
|
|
|
|
public int Money { get; private init; }
|
2021-10-10 23:11:46 +00:00
|
|
|
|
public int Rival { get; private init; }
|
2020-12-22 01:48:08 +00:00
|
|
|
|
public int Options { get; private init; }
|
|
|
|
|
public int Badges { get; private init; }
|
|
|
|
|
public int TID { get; private init; }
|
|
|
|
|
public int PikaFriendship { get; private init; }
|
|
|
|
|
public int PikaBeachScore { get; private init; }
|
|
|
|
|
public int PrinterBrightness { get; private init; }
|
|
|
|
|
public int PCItems { get; private init; }
|
|
|
|
|
public int CurrentBoxIndex { get; private init; }
|
|
|
|
|
public int Coin { get; private init; }
|
|
|
|
|
public int ObjectSpawnFlags { get; private init; }
|
|
|
|
|
public int Starter { get; private init; }
|
|
|
|
|
public int EventFlag { get; private init; }
|
|
|
|
|
public int PlayTime { get; private init; }
|
|
|
|
|
public int Daycare { get; private init; }
|
|
|
|
|
public int Party { get; private init; }
|
|
|
|
|
public int CurrentBox { get; private init; }
|
|
|
|
|
public int ChecksumOfs { get; private init; }
|
2018-08-06 03:27:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|