mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-19 12:20:22 -05:00
Add IsEgg for SK2
Stored at 0x1E
This commit is contained in:
parent
6938d2f94d
commit
f4f25da986
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user