Fix viewing legality as ck3/xk3

ChecksumValid was returning false
This commit is contained in:
Kurt 2017-04-29 23:13:21 -07:00
parent e814e7291f
commit f613960cdc
2 changed files with 2 additions and 0 deletions

View file

@ -50,6 +50,7 @@ namespace PKHeX.Core
// Silly Attributes
public override ushort Sanity { get { return 0; } set { } } // valid flag set in pkm structure.
public override ushort Checksum { get { return SaveUtil.ccitt16(Data); } set { } } // totally false, just a way to get a 'random' ident for the pkm.
public override bool ChecksumValid => Valid;
public override int Species { get { return PKX.getG4Species(BigEndian.ToUInt16(Data, 0x00)); } set { BigEndian.GetBytes((ushort)PKX.getG3Species(value)).CopyTo(Data, 0x00); } }
// 02-04 unused

View file

@ -48,6 +48,7 @@ namespace PKHeX.Core
// Silly Attributes
public override ushort Sanity { get { return 0; } set { } } // valid flag set in pkm structure.
public override ushort Checksum { get { return SaveUtil.ccitt16(Data); } set { } } // totally false, just a way to get a 'random' ident for the pkm.
public override bool ChecksumValid => Valid;
public override int Species { get { return PKX.getG4Species(BigEndian.ToUInt16(Data, 0x00)); } set { BigEndian.GetBytes((ushort)PKX.getG3Species(value)).CopyTo(Data, 0x00); } }
public override int SpriteItem => PKX.getG4Item((ushort)HeldItem);