Change OT_Class to have an expression body (#2759)

This commit is contained in:
pi1024e 2020-03-13 13:28:50 -04:00 committed by GitHub
parent 6f0c3c1205
commit 8a1e73e5b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ namespace PKHeX.Core
set => BitConverter.GetBytes(value).CopyTo(Data, Offset + 9);
}
public int OT_Class { get => Data[Offset + 9] % 5; }
public int OT_Class => Data[Offset + 9] % 5;
public int Language { get => Data[Offset + 0x0D]; set => Data[Offset + 0x0D] = (byte)value; }
public int _E { get => Data[Offset + 0x0E]; set => Data[Offset + 0x0E] = (byte)value; }
public int _F { get => Data[Offset + 0x0F]; set => Data[Offset + 0x0F] = (byte)value; }

View file

@ -232,9 +232,9 @@ namespace PKHeX.WinForms
}
SAV.BP = ushort.Parse(TB_BP.Text);
// Set Current PokéMiles
// Set Current PokéMiles
SAV.SetRecord(63, Util.ToInt32(TB_PM.Text));
// Set Max Obtained Pokémiles
// Set Max Obtained Pokémiles
SAV.SetRecord(64, Util.ToInt32(TB_PM.Text));
sit.Style = byte.Parse(TB_Style.Text);