mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Actual Shiny Lock Mechanics
This commit is contained in:
parent
c0338dfaaf
commit
c5cde538a6
2 changed files with 4 additions and 2 deletions
|
@ -428,7 +428,8 @@ namespace PKHeX.Core
|
|||
pk.PID = (uint)(((TID ^ SID ^ (pk.PID & 0xFFFF)) << 16) + (pk.PID & 0xFFFF));
|
||||
break;
|
||||
case 03: // Random Nonshiny
|
||||
do { pk.PID = Util.rnd32(); } while ((uint)(((TID ^ SID ^ (pk.PID & 0xFFFF)) << 16) + (pk.PID & 0xFFFF)) < 16);
|
||||
pk.PID = Util.rnd32();
|
||||
if ((uint)(((TID ^ SID ^ (pk.PID & 0xFFFF)) << 16) + (pk.PID & 0xFFFF)) < 16) pk.PID ^= 0x10000000;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -455,7 +455,8 @@ namespace PKHeX.Core
|
|||
pk.PID = (uint)(((TID ^ SID ^ (pk.PID & 0xFFFF)) << 16) + (pk.PID & 0xFFFF));
|
||||
break;
|
||||
case 03: // Random Nonshiny
|
||||
do { pk.PID = Util.rnd32(); } while ((uint)(((TID ^ SID ^ (pk.PID & 0xFFFF)) << 16) + (pk.PID & 0xFFFF)) < 16);
|
||||
pk.PID = Util.rnd32();
|
||||
if ((uint)(((TID ^ SID ^ (pk.PID & 0xFFFF)) << 16) + (pk.PID & 0xFFFF)) < 16) pk.PID ^= 0x10000000;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue