From 27dfffd5b23176ff88b7d8be1cd13a7870eb9d85 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 10 Apr 2019 17:03:05 -0700 Subject: [PATCH] Add model-gender/starter-gender get/set https://projectpokemon.org/home/forums/topic/52127-lgpe-save-research/?tab=comments#comment-243751 Thanks theSlayer! (starter gender not modifiable via gui) --- PKHeX.Core/Saves/Substructures/Gen7/MyStatus7b.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/Substructures/Gen7/MyStatus7b.cs b/PKHeX.Core/Saves/Substructures/Gen7/MyStatus7b.cs index fabc3dcaf..f1a44a662 100644 --- a/PKHeX.Core/Saves/Substructures/Gen7/MyStatus7b.cs +++ b/PKHeX.Core/Saves/Substructures/Gen7/MyStatus7b.cs @@ -37,7 +37,7 @@ public int Game public int Gender { get => Data[Offset + 5]; - set => Data[Offset + 5] = (byte)value; + set => Data[Offset + 5] = OverworldGender = (byte)value; } public int Language @@ -51,5 +51,17 @@ public string OT get => SAV.GetString(Offset + 0x38, 0x1A); set => SAV.SetString(value, SAV.OTLength).CopyTo(Data, Offset + 0x38); } + + public byte StarterGender + { + get => Data[Offset + 0x0B9]; + set => Data[Offset + 0x0B9] = value; + } + + public byte OverworldGender // Model + { + get => Data[Offset + 0x108]; + set => Data[Offset + 0x108] = value; + } } } \ No newline at end of file