mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Fix viewing legality as ck3/xk3
ChecksumValid was returning false
This commit is contained in:
parent
e814e7291f
commit
f613960cdc
2 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ namespace PKHeX.Core
|
||||||
// Silly Attributes
|
// Silly Attributes
|
||||||
public override ushort Sanity { get { return 0; } set { } } // valid flag set in pkm structure.
|
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 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 Species { get { return PKX.getG4Species(BigEndian.ToUInt16(Data, 0x00)); } set { BigEndian.GetBytes((ushort)PKX.getG3Species(value)).CopyTo(Data, 0x00); } }
|
||||||
// 02-04 unused
|
// 02-04 unused
|
||||||
|
|
|
@ -48,6 +48,7 @@ namespace PKHeX.Core
|
||||||
// Silly Attributes
|
// Silly Attributes
|
||||||
public override ushort Sanity { get { return 0; } set { } } // valid flag set in pkm structure.
|
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 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 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);
|
public override int SpriteItem => PKX.getG4Item((ushort)HeldItem);
|
||||||
|
|
Loading…
Reference in a new issue