mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Update PK5.cs
don't count sinnoh champ in battle ribbon sum
This commit is contained in:
parent
1291a40e21
commit
f27326cb2e
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue