Update PK5.cs

don't count sinnoh champ in battle ribbon sum
This commit is contained in:
Kurt 2024-03-20 23:31:17 -05:00
parent 1291a40e21
commit f27326cb2e

View file

@ -506,7 +506,7 @@ public sealed class PK5 : PKM, ISanityChecksum,
private static byte CountBattleRibbons(ReadOnlySpan<byte> data)
{
var bits1 = data[0x24] & 0b0111_1111u; // Battle Ribbons
var bits1 = data[0x24] & 0b0111_1110u; // Battle Ribbons
var bits2 = data[0x3E] & 0b0110_0000u; // Winning & Victory Ribbons
return (byte)BitOperations.PopCount(bits1 | (bits2 << 2));
}