Add IsEgg for SK2

Stored at 0x1E
This commit is contained in:
Kurt 2020-10-04 14:15:29 -07:00
parent 6938d2f94d
commit f4f25da986
2 changed files with 3 additions and 1 deletions

View File

@ -251,6 +251,7 @@ public SK2 ConvertToSK2()
Move3_PPUps = Move3_PPUps,
Move4_PPUps = Move4_PPUps,
CurrentFriendship = CurrentFriendship,
IsEgg = IsEgg,
Stat_Level = Stat_Level,
PKRS_Days = PKRS_Days,
PKRS_Strain = PKRS_Strain,

View File

@ -63,6 +63,7 @@ public override PKM Clone() => new SK2((byte[])Data.Clone(), Japanese)
public override int CurrentFriendship { get => Data[0x1C]; set => Data[0x1C] = (byte)value; }
public override int Stat_Level { get => Data[0x1D]; set => Data[0x1D] = (byte)value; }
public override bool IsEgg { get => Data[0x1E] != 0; set => Data[0x1E] = (byte)(value ? 1 : 0); }
// 0x1E, 0x1F
@ -109,7 +110,6 @@ public override string OT_Name
public override int Stat_SPD { get; set; }
#endregion
public override bool IsEgg { get; set; }
public override int OT_Friendship { get => CurrentFriendship; set => CurrentFriendship = value; }
public override bool HasOriginalMetLocation => CaughtData != 0;
public override int Version { get => (int)GameVersion.GSC; set { } }
@ -164,6 +164,7 @@ public PK2 ConvertToPK2()
Move4_PPUps = Move4_PPUps,
CurrentFriendship = CurrentFriendship,
Stat_Level = Stat_Level,
IsEgg = IsEgg,
PKRS_Days = PKRS_Days,
PKRS_Strain = PKRS_Strain,
CaughtData = CaughtData,