From acb9cc2a9d487712f0cfd1ca9593fb967c74acb4 Mon Sep 17 00:00:00 2001 From: CanoeHope <43196464+CanoeHope@users.noreply.github.com> Date: Mon, 10 Feb 2020 15:02:52 -0500 Subject: [PATCH] Add Gender to Gen 8 Trainer Card (#2694) --- PKHeX.Core/Saves/Substructures/Gen8/TrainerCard8.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PKHeX.Core/Saves/Substructures/Gen8/TrainerCard8.cs b/PKHeX.Core/Saves/Substructures/Gen8/TrainerCard8.cs index 88c289524..d78ed43fe 100644 --- a/PKHeX.Core/Saves/Substructures/Gen8/TrainerCard8.cs +++ b/PKHeX.Core/Saves/Substructures/Gen8/TrainerCard8.cs @@ -92,6 +92,12 @@ namespace PKHeX.Core set => Data[Offset + 0x30] = (byte)(value ? 1 : 0); } + public int Gender + { + get => Data[0x38]; + set => Data[0x38] = (byte)value; + } + public string Number { get => Encoding.ASCII.GetString(Data, 0x39, 3);