2016-08-31 20:52:30 +00:00
|
|
|
|
using System;
|
2022-01-03 05:35:59 +00:00
|
|
|
|
using static System.Buffers.Binary.BinaryPrimitives;
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2017-01-08 07:54:09 +00:00
|
|
|
|
namespace PKHeX.Core
|
2016-08-31 20:52:30 +00:00
|
|
|
|
{
|
2017-10-24 06:12:58 +00:00
|
|
|
|
/// <summary> Generation 2 <see cref="PKM"/> format. </summary>
|
2020-10-03 01:08:40 +00:00
|
|
|
|
public sealed class PK2 : GBPKML, ICaughtData2
|
2016-08-31 20:52:30 +00:00
|
|
|
|
{
|
2016-10-24 05:01:39 +00:00
|
|
|
|
public override PersonalInfo PersonalInfo => PersonalTable.C[Species];
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2021-02-21 23:01:28 +00:00
|
|
|
|
internal const byte EggSpeciesValue = 0xFD;
|
|
|
|
|
public override bool Valid => Species is <= Legal.MaxSpeciesID_2 or EggSpeciesValue; // egg
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2020-01-04 22:48:39 +00:00
|
|
|
|
public override int SIZE_PARTY => PokeCrypto.SIZE_2PARTY;
|
|
|
|
|
public override int SIZE_STORED => PokeCrypto.SIZE_2STORED;
|
2021-05-29 22:31:47 +00:00
|
|
|
|
public override bool Korean => !Japanese && RawOT[0] <= 0xB;
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2016-09-02 21:20:39 +00:00
|
|
|
|
public override int Format => 2;
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2020-09-26 19:09:02 +00:00
|
|
|
|
public PK2(bool jp = false) : base(PokeCrypto.SIZE_2PARTY, jp) { }
|
|
|
|
|
public PK2(byte[] decryptedData, bool jp = false) : base(EnsurePartySize(decryptedData), jp) { }
|
|
|
|
|
|
|
|
|
|
private static byte[] EnsurePartySize(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
if (data.Length != PokeCrypto.SIZE_2PARTY)
|
|
|
|
|
Array.Resize(ref data, PokeCrypto.SIZE_2PARTY);
|
|
|
|
|
return data;
|
|
|
|
|
}
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2022-01-03 05:35:59 +00:00
|
|
|
|
public override PKM Clone()
|
2016-08-31 20:52:30 +00:00
|
|
|
|
{
|
2022-01-03 05:35:59 +00:00
|
|
|
|
var clone = new PK2((byte[])Data.Clone(), Japanese) { IsEgg = IsEgg };
|
|
|
|
|
OT_Trash.CopyTo(clone.OT_Trash);
|
|
|
|
|
Nickname_Trash.CopyTo(clone.Nickname_Trash);
|
|
|
|
|
return clone;
|
|
|
|
|
}
|
2016-08-31 20:52:30 +00:00
|
|
|
|
|
2018-08-06 00:28:54 +00:00
|
|
|
|
protected override byte[] Encrypt() => new PokeList2(this).Write();
|
2017-09-23 03:34:29 +00:00
|
|
|
|
|
2016-08-31 20:52:30 +00:00
|
|
|
|
#region Stored Attributes
|
2018-08-19 22:50:15 +00:00
|
|
|
|
public override int Species { get => Data[0]; set => Data[0] = (byte)value; }
|
2020-06-17 02:46:22 +00:00
|
|
|
|
public override int SpriteItem => ItemConverter.GetItemFuture2((byte)HeldItem);
|
2017-05-13 03:32:36 +00:00
|
|
|
|
public override int HeldItem { get => Data[0x1]; set => Data[0x1] = (byte)value; }
|
|
|
|
|
public override int Move1 { get => Data[2]; set => Data[2] = (byte)value; }
|
|
|
|
|
public override int Move2 { get => Data[3]; set => Data[3] = (byte)value; }
|
|
|
|
|
public override int Move3 { get => Data[4]; set => Data[4] = (byte)value; }
|
|
|
|
|
public override int Move4 { get => Data[5]; set => Data[5] = (byte)value; }
|
2022-01-03 05:35:59 +00:00
|
|
|
|
public override int TID { get => ReadUInt16BigEndian(Data.AsSpan(6)); set => WriteUInt16BigEndian(Data.AsSpan(6), (ushort)value); }
|
|
|
|
|
public override uint EXP { get => ReadUInt32BigEndian(Data.AsSpan(0x08)) >> 8; set => WriteUInt32BigEndian(Data.AsSpan(8), (value << 8) | Data[0xB]); }
|
|
|
|
|
public override int EV_HP { get => ReadUInt16BigEndian(Data.AsSpan(0x0B)); set => WriteUInt16BigEndian(Data.AsSpan(0xB), (ushort)value); }
|
|
|
|
|
public override int EV_ATK { get => ReadUInt16BigEndian(Data.AsSpan(0x0D)); set => WriteUInt16BigEndian(Data.AsSpan(0xD), (ushort)value); }
|
|
|
|
|
public override int EV_DEF { get => ReadUInt16BigEndian(Data.AsSpan(0x0F)); set => WriteUInt16BigEndian(Data.AsSpan(0xF), (ushort)value); }
|
|
|
|
|
public override int EV_SPE { get => ReadUInt16BigEndian(Data.AsSpan(0x11)); set => WriteUInt16BigEndian(Data.AsSpan(0x11), (ushort)value); }
|
|
|
|
|
public override int EV_SPC { get => ReadUInt16BigEndian(Data.AsSpan(0x13)); set => WriteUInt16BigEndian(Data.AsSpan(0x13), (ushort)value); }
|
|
|
|
|
public override ushort DV16 { get => ReadUInt16BigEndian(Data.AsSpan(0x15)); set => WriteUInt16BigEndian(Data.AsSpan(0x15), value); }
|
2017-05-19 16:22:12 +00:00
|
|
|
|
public override int Move1_PP { get => Data[0x17] & 0x3F; set => Data[0x17] = (byte)((Data[0x17] & 0xC0) | Math.Min(63, value)); }
|
|
|
|
|
public override int Move2_PP { get => Data[0x18] & 0x3F; set => Data[0x18] = (byte)((Data[0x18] & 0xC0) | Math.Min(63, value)); }
|
|
|
|
|
public override int Move3_PP { get => Data[0x19] & 0x3F; set => Data[0x19] = (byte)((Data[0x19] & 0xC0) | Math.Min(63, value)); }
|
|
|
|
|
public override int Move4_PP { get => Data[0x1A] & 0x3F; set => Data[0x1A] = (byte)((Data[0x1A] & 0xC0) | Math.Min(63, value)); }
|
2017-05-13 03:32:36 +00:00
|
|
|
|
public override int Move1_PPUps { get => (Data[0x17] & 0xC0) >> 6; set => Data[0x17] = (byte)((Data[0x17] & 0x3F) | ((value & 0x3) << 6)); }
|
|
|
|
|
public override int Move2_PPUps { get => (Data[0x18] & 0xC0) >> 6; set => Data[0x18] = (byte)((Data[0x18] & 0x3F) | ((value & 0x3) << 6)); }
|
|
|
|
|
public override int Move3_PPUps { get => (Data[0x19] & 0xC0) >> 6; set => Data[0x19] = (byte)((Data[0x19] & 0x3F) | ((value & 0x3) << 6)); }
|
|
|
|
|
public override int Move4_PPUps { get => (Data[0x1A] & 0xC0) >> 6; set => Data[0x1A] = (byte)((Data[0x1A] & 0x3F) | ((value & 0x3) << 6)); }
|
|
|
|
|
public override int CurrentFriendship { get => Data[0x1B]; set => Data[0x1B] = (byte)value; }
|
|
|
|
|
private byte PKRS { get => Data[0x1C]; set => Data[0x1C] = value; }
|
2018-08-19 22:50:15 +00:00
|
|
|
|
public override int PKRS_Days { get => PKRS & 0xF; set => PKRS = (byte)((PKRS & ~0xF) | value); }
|
|
|
|
|
public override int PKRS_Strain { get => PKRS >> 4; set => PKRS = (byte)((PKRS & 0xF) | value << 4); }
|
2016-08-31 20:52:30 +00:00
|
|
|
|
// Crystal only Caught Data
|
2022-03-06 02:30:35 +00:00
|
|
|
|
public ushort CaughtData { get => ReadUInt16BigEndian(Data.AsSpan(0x1D)); set => WriteUInt16BigEndian(Data.AsSpan(0x1D), value); }
|
|
|
|
|
public int Met_TimeOfDay { get => (CaughtData >> 14) & 0x3; set => CaughtData = (ushort)((CaughtData & 0x3FFF) | ((value & 0x3) << 14)); }
|
|
|
|
|
public override int Met_Level { get => (CaughtData >> 8) & 0x3F; set => CaughtData = (ushort)((CaughtData & 0xC0FF) | ((value & 0x3F) << 8)); }
|
|
|
|
|
public override int OT_Gender { get => (CaughtData >> 7) & 1; set => CaughtData = (ushort)((CaughtData & 0xFF7F) | ((value & 1) << 7)); }
|
|
|
|
|
public override int Met_Location { get => CaughtData & 0x7F; set => CaughtData = (ushort)((CaughtData & 0xFF80) | (value & 0x7F)); }
|
2018-05-12 15:13:39 +00:00
|
|
|
|
|
2016-10-23 03:07:03 +00:00
|
|
|
|
public override int Stat_Level
|
2016-08-31 20:52:30 +00:00
|
|
|
|
{
|
2017-05-13 03:32:36 +00:00
|
|
|
|
get => Data[0x1F];
|
|
|
|
|
set => Data[0x1F] = (byte)value;
|
2016-08-31 20:52:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Party Attributes
|
2019-01-12 06:25:48 +00:00
|
|
|
|
public override int Status_Condition { get => Data[0x20]; set => Data[0x20] = (byte)value; }
|
2017-05-13 03:32:36 +00:00
|
|
|
|
|
2022-01-03 05:35:59 +00:00
|
|
|
|
public override int Stat_HPCurrent { get => ReadUInt16BigEndian(Data.AsSpan(0x22)); set => WriteUInt16BigEndian(Data.AsSpan(0x22), (ushort)value); }
|
|
|
|
|
public override int Stat_HPMax { get => ReadUInt16BigEndian(Data.AsSpan(0x24)); set => WriteUInt16BigEndian(Data.AsSpan(0x24), (ushort)value); }
|
|
|
|
|
public override int Stat_ATK { get => ReadUInt16BigEndian(Data.AsSpan(0x26)); set => WriteUInt16BigEndian(Data.AsSpan(0x26), (ushort)value); }
|
|
|
|
|
public override int Stat_DEF { get => ReadUInt16BigEndian(Data.AsSpan(0x28)); set => WriteUInt16BigEndian(Data.AsSpan(0x28), (ushort)value); }
|
|
|
|
|
public override int Stat_SPE { get => ReadUInt16BigEndian(Data.AsSpan(0x2A)); set => WriteUInt16BigEndian(Data.AsSpan(0x2A), (ushort)value); }
|
|
|
|
|
public override int Stat_SPA { get => ReadUInt16BigEndian(Data.AsSpan(0x2C)); set => WriteUInt16BigEndian(Data.AsSpan(0x2C), (ushort)value); }
|
|
|
|
|
public override int Stat_SPD { get => ReadUInt16BigEndian(Data.AsSpan(0x2E)); set => WriteUInt16BigEndian(Data.AsSpan(0x2E), (ushort)value); }
|
2016-08-31 20:52:30 +00:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public override bool IsEgg { get; set; }
|
2020-07-13 01:58:07 +00:00
|
|
|
|
public override int OT_Friendship { get => CurrentFriendship; set => CurrentFriendship = value; }
|
2017-03-21 00:50:35 +00:00
|
|
|
|
public override bool HasOriginalMetLocation => CaughtData != 0;
|
2019-07-28 20:26:35 +00:00
|
|
|
|
public override int Version { get => (int)GameVersion.GSC; set { } }
|
2016-09-04 22:03:40 +00:00
|
|
|
|
|
2017-05-23 04:55:05 +00:00
|
|
|
|
// Maximums
|
|
|
|
|
public override int MaxMoveID => Legal.MaxMoveID_2;
|
|
|
|
|
public override int MaxSpeciesID => Legal.MaxSpeciesID_2;
|
|
|
|
|
public override int MaxAbilityID => Legal.MaxAbilityID_2;
|
|
|
|
|
public override int MaxItemID => Legal.MaxItemID_2;
|
|
|
|
|
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public PK1 ConvertToPK1()
|
2016-09-04 22:03:40 +00:00
|
|
|
|
{
|
2021-08-20 22:59:54 +00:00
|
|
|
|
PK1 pk1 = new(Japanese);
|
2016-09-04 22:03:40 +00:00
|
|
|
|
Array.Copy(Data, 0x1, pk1.Data, 0x7, 0x1A);
|
|
|
|
|
pk1.Species = Species; // This will take care of Typing :)
|
2018-07-24 23:41:18 +00:00
|
|
|
|
|
2018-07-31 21:29:47 +00:00
|
|
|
|
var lvl = Stat_Level;
|
|
|
|
|
if (lvl == 0) // no party stats (originated from box format), need to regenerate
|
|
|
|
|
{
|
|
|
|
|
pk1.Stat_HPCurrent = GetStat(PersonalInfo.HP, IV_ATK, EV_ATK, Stat_Level);
|
|
|
|
|
pk1.Stat_Level = CurrentLevel;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
pk1.Stat_HPCurrent = Stat_HPCurrent;
|
|
|
|
|
pk1.Stat_Level = Stat_Level;
|
|
|
|
|
}
|
2016-09-04 22:03:40 +00:00
|
|
|
|
// Status = 0
|
2022-01-03 05:35:59 +00:00
|
|
|
|
OT_Trash.CopyTo(pk1.OT_Trash);
|
2022-03-11 02:00:45 +00:00
|
|
|
|
Nickname_Trash.CopyTo(pk1.Nickname_Trash);
|
2016-09-04 22:03:40 +00:00
|
|
|
|
|
2018-06-05 04:28:14 +00:00
|
|
|
|
pk1.ClearInvalidMoves();
|
2016-09-04 22:33:53 +00:00
|
|
|
|
|
2016-09-04 22:03:40 +00:00
|
|
|
|
return pk1;
|
|
|
|
|
}
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
2017-06-18 01:37:19 +00:00
|
|
|
|
public PK7 ConvertToPK7()
|
2017-06-10 22:48:12 +00:00
|
|
|
|
{
|
|
|
|
|
var pk7 = new PK7
|
|
|
|
|
{
|
2017-06-18 01:37:19 +00:00
|
|
|
|
EncryptionConstant = Util.Rand32(),
|
2017-06-10 22:48:12 +00:00
|
|
|
|
Species = Species,
|
|
|
|
|
TID = TID,
|
|
|
|
|
CurrentLevel = CurrentLevel,
|
|
|
|
|
EXP = EXP,
|
|
|
|
|
Met_Level = CurrentLevel,
|
2018-07-30 00:43:30 +00:00
|
|
|
|
Nature = Experience.GetNatureVC(EXP),
|
2017-06-18 01:37:19 +00:00
|
|
|
|
PID = Util.Rand32(),
|
2017-06-10 22:48:12 +00:00
|
|
|
|
Ball = 4,
|
|
|
|
|
MetDate = DateTime.Now,
|
2022-02-27 19:16:12 +00:00
|
|
|
|
Version = HasOriginalMetLocation ? (int)GameVersion.C : (int)GameVersion.SI,
|
2017-06-10 22:48:12 +00:00
|
|
|
|
Move1 = Move1,
|
|
|
|
|
Move2 = Move2,
|
|
|
|
|
Move3 = Move3,
|
|
|
|
|
Move4 = Move4,
|
|
|
|
|
Move1_PPUps = Move1_PPUps,
|
|
|
|
|
Move2_PPUps = Move2_PPUps,
|
|
|
|
|
Move3_PPUps = Move3_PPUps,
|
|
|
|
|
Move4_PPUps = Move4_PPUps,
|
2020-09-05 19:11:43 +00:00
|
|
|
|
Met_Location = Locations.Transfer2, // "Johto region", hardcoded.
|
2017-09-06 16:12:56 +00:00
|
|
|
|
Gender = Gender,
|
2017-06-10 22:48:12 +00:00
|
|
|
|
IsNicknamed = false,
|
2020-12-11 04:42:30 +00:00
|
|
|
|
Form = Form,
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
|
|
|
|
CurrentHandler = 1,
|
2022-04-09 08:39:34 +00:00
|
|
|
|
HT_Name = RecentTrainerCache.OT_Name,
|
|
|
|
|
HT_Gender = RecentTrainerCache.OT_Gender,
|
2017-06-10 22:48:12 +00:00
|
|
|
|
};
|
2022-04-09 08:39:34 +00:00
|
|
|
|
RecentTrainerCache.SetConsoleRegionData3DS(pk7);
|
|
|
|
|
RecentTrainerCache.SetFirstCountryRegion(pk7);
|
2019-12-26 23:28:04 +00:00
|
|
|
|
pk7.HealPP();
|
2022-04-09 08:39:34 +00:00
|
|
|
|
var lang = TransferLanguage(RecentTrainerCache.Language);
|
2020-07-19 18:32:40 +00:00
|
|
|
|
pk7.Language = lang;
|
|
|
|
|
pk7.Nickname = SpeciesName.GetSpeciesNameGeneration(pk7.Species, lang, pk7.Format);
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
|
|
|
|
// IVs
|
2020-12-25 20:30:26 +00:00
|
|
|
|
var special = Species is 151 or 251;
|
2022-01-03 05:35:59 +00:00
|
|
|
|
Span<int> finalIVs = stackalloc int[6];
|
2017-06-10 22:48:12 +00:00
|
|
|
|
int flawless = special ? 5 : 3;
|
2020-01-26 05:49:52 +00:00
|
|
|
|
var rnd = Util.Rand;
|
2022-01-03 05:35:59 +00:00
|
|
|
|
for (var i = 0; i < finalIVs.Length; i++)
|
|
|
|
|
finalIVs[i] = rnd.Next(32);
|
2020-01-26 05:49:52 +00:00
|
|
|
|
for (var i = 0; i < flawless; i++)
|
2022-01-03 05:35:59 +00:00
|
|
|
|
finalIVs[i] = 31;
|
|
|
|
|
Util.Shuffle(finalIVs);
|
|
|
|
|
pk7.SetIVs(finalIVs);
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
2020-09-26 01:00:10 +00:00
|
|
|
|
switch (IsShiny ? Shiny.Always : Shiny.Never)
|
|
|
|
|
{
|
|
|
|
|
case Shiny.Always when !pk7.IsShiny: // Force Square
|
2020-10-14 05:43:43 +00:00
|
|
|
|
pk7.PID = (uint)(((pk7.TID ^ 0 ^ (pk7.PID & 0xFFFF) ^ 0) << 16) | (pk7.PID & 0xFFFF));
|
2020-09-26 01:00:10 +00:00
|
|
|
|
break;
|
|
|
|
|
case Shiny.Never when pk7.IsShiny: // Force Not Shiny
|
|
|
|
|
pk7.PID ^= 0x1000_0000;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
2021-01-02 08:46:09 +00:00
|
|
|
|
int abil = Legal.TransferSpeciesDefaultAbilityGen2(Species) ? 0 : 2; // Hidden
|
2017-06-10 22:48:12 +00:00
|
|
|
|
pk7.RefreshAbility(abil); // 0/1/2 (not 1/2/4)
|
|
|
|
|
|
|
|
|
|
if (special)
|
2018-08-19 22:50:15 +00:00
|
|
|
|
{
|
2017-06-10 22:48:12 +00:00
|
|
|
|
pk7.FatefulEncounter = true;
|
2018-08-19 22:50:15 +00:00
|
|
|
|
}
|
2017-09-23 03:34:29 +00:00
|
|
|
|
else if (IsNicknamedBank)
|
2017-06-10 22:48:12 +00:00
|
|
|
|
{
|
|
|
|
|
pk7.IsNicknamed = true;
|
2021-05-29 22:31:47 +00:00
|
|
|
|
pk7.Nickname = Korean ? Nickname : StringConverter12Transporter.GetString(RawNickname, Japanese);
|
2017-06-10 22:48:12 +00:00
|
|
|
|
}
|
2021-05-29 22:31:47 +00:00
|
|
|
|
if (RawOT[0] == StringConverter12.G1TradeOTCode) // In-game Trade
|
2021-02-03 00:27:31 +00:00
|
|
|
|
pk7.OT_Name = StringConverter12.G1TradeOTName[lang];
|
|
|
|
|
else
|
2021-05-29 22:31:47 +00:00
|
|
|
|
pk7.OT_Name = Korean ? OT_Name : StringConverter12Transporter.GetString(RawOT, Japanese);
|
2017-11-23 05:45:30 +00:00
|
|
|
|
pk7.OT_Gender = OT_Gender; // Crystal
|
2021-02-03 00:27:31 +00:00
|
|
|
|
pk7.OT_Friendship = pk7.HT_Friendship = PersonalTable.SM[Species].BaseFriendship;
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
2021-08-29 20:15:45 +00:00
|
|
|
|
pk7.SetTradeMemoryHT6(bank: true); // oh no, memories on gen7 pkm
|
2017-06-10 22:48:12 +00:00
|
|
|
|
|
2018-01-26 03:17:42 +00:00
|
|
|
|
// Dizzy Punch cannot be transferred
|
|
|
|
|
{
|
2020-09-05 19:11:43 +00:00
|
|
|
|
var index = pk7.GetMoveIndex(146); // Dizzy Punch
|
2018-01-26 03:17:42 +00:00
|
|
|
|
if (index != -1)
|
|
|
|
|
{
|
2020-09-05 19:11:43 +00:00
|
|
|
|
pk7.SetMove(index, 0);
|
2018-01-26 03:17:42 +00:00
|
|
|
|
pk7.FixMoves();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-10 22:48:12 +00:00
|
|
|
|
pk7.RefreshChecksum();
|
|
|
|
|
return pk7;
|
|
|
|
|
}
|
2020-10-03 01:08:40 +00:00
|
|
|
|
|
2021-12-05 01:56:56 +00:00
|
|
|
|
public SK2 ConvertToSK2() => new(Japanese)
|
2020-10-03 01:08:40 +00:00
|
|
|
|
{
|
2021-12-05 01:56:56 +00:00
|
|
|
|
Species = Species,
|
|
|
|
|
HeldItem = HeldItem,
|
|
|
|
|
Move1 = Move1,
|
|
|
|
|
Move2 = Move2,
|
|
|
|
|
Move3 = Move3,
|
|
|
|
|
Move4 = Move4,
|
|
|
|
|
TID = TID,
|
|
|
|
|
EXP = EXP,
|
|
|
|
|
EV_HP = EV_HP,
|
|
|
|
|
EV_ATK = EV_ATK,
|
|
|
|
|
EV_DEF = EV_DEF,
|
|
|
|
|
EV_SPE = EV_SPE,
|
|
|
|
|
EV_SPC = EV_SPC,
|
|
|
|
|
DV16 = DV16,
|
|
|
|
|
Move1_PP = Move1_PP,
|
|
|
|
|
Move2_PP = Move2_PP,
|
|
|
|
|
Move3_PP = Move3_PP,
|
|
|
|
|
Move4_PP = Move4_PP,
|
|
|
|
|
Move1_PPUps = Move1_PPUps,
|
|
|
|
|
Move2_PPUps = Move2_PPUps,
|
|
|
|
|
Move3_PPUps = Move3_PPUps,
|
|
|
|
|
Move4_PPUps = Move4_PPUps,
|
|
|
|
|
CurrentFriendship = CurrentFriendship,
|
|
|
|
|
IsEgg = IsEgg,
|
|
|
|
|
Stat_Level = Stat_Level,
|
|
|
|
|
PKRS_Days = PKRS_Days,
|
|
|
|
|
PKRS_Strain = PKRS_Strain,
|
|
|
|
|
CaughtData = CaughtData,
|
2020-10-03 01:08:40 +00:00
|
|
|
|
|
2021-12-05 01:56:56 +00:00
|
|
|
|
// Only copies until first 0x50 terminator, but just copy everything
|
|
|
|
|
Nickname = Nickname,
|
|
|
|
|
OT_Name = OT_Name,
|
|
|
|
|
};
|
2016-08-31 20:52:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|