From cec408e62aaa2b796a15dcdd8027969ca1339b28 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 2 Apr 2022 17:58:47 -0700 Subject: [PATCH] Use different checksum algo (bytewise) if no impl Closes #3471 --- PKHeX.Core/Editing/PKM/EntitySummary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Editing/PKM/EntitySummary.cs b/PKHeX.Core/Editing/PKM/EntitySummary.cs index dc1011fbe..c14330867 100644 --- a/PKHeX.Core/Editing/PKM/EntitySummary.cs +++ b/PKHeX.Core/Editing/PKM/EntitySummary.cs @@ -96,7 +96,7 @@ namespace PKHeX.Core public string Relearn2 => Get(Strings.movelist, pkm.RelearnMove2); public string Relearn3 => Get(Strings.movelist, pkm.RelearnMove3); public string Relearn4 => Get(Strings.movelist, pkm.RelearnMove4); - public ushort Checksum => pkm is ISanityChecksum s ? s.Checksum : PokeCrypto.GetCHK(pkm.Data, pkm.SIZE_STORED); + public ushort Checksum => pkm is ISanityChecksum s ? s.Checksum : Checksums.CRC16_CCITT(pkm.Data.AsSpan(pkm.SIZE_STORED)); public int Friendship => pkm.OT_Friendship; public int Egg_Year => pkm.EggMetDate.GetValueOrDefault().Year; public int Egg_Month => pkm.EggMetDate.GetValueOrDefault().Month;