mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
relax RB/Y detection when no starter chosen
value is 0 until a starter is chosen
This commit is contained in:
parent
4950909d97
commit
bbff1e086a
1 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,8 @@ namespace PKHeX.Core
|
|||
else Version = SaveUtil.GetIsG1SAV(Data);
|
||||
if (Version == GameVersion.Invalid)
|
||||
return;
|
||||
Version = Yellow ? GameVersion.Y : GameVersion.RB;
|
||||
if (Starter != 0)
|
||||
Version = Yellow ? GameVersion.Y : GameVersion.RB;
|
||||
|
||||
Box = Data.Length;
|
||||
Array.Resize(ref Data, Data.Length + SIZE_RESERVED);
|
||||
|
@ -253,7 +254,8 @@ namespace PKHeX.Core
|
|||
set { }
|
||||
}
|
||||
|
||||
public bool Yellow => Data[Japanese ? 0x29B9 : 0x29C3] == 0x54; // Player Starter == Pikachu
|
||||
public bool Yellow => Starter == 0x54; // Pikachu
|
||||
public int Starter => Data[Japanese ? 0x29B9 : 0x29C3];
|
||||
public byte PikaFriendship
|
||||
{
|
||||
get => Data[Japanese ? 0x2712 : 0x271C];
|
||||
|
|
Loading…
Add table
Reference in a new issue