/// <summary> /// Converts a <see cref="XK3"/> or <see cref="PK3"/> to <see cref="CK3"/>. /// </summary> /// <returns><see cref="CK3"/> format <see cref="PKM"/></returns> public PKM convertToCK3() { if (Format != 3) { return(null); } if (GetType() == typeof(CK3)) { return(this); } var pk = new CK3(); TransferPropertiesWithReflection(this, pk); pk.setStats(getStats(PersonalTable.RS[pk.Species])); return(pk); }
// Gen3 Conversion -- do not use if format > 4 public PKM convertToCK3() { if (Format != 3) return null; if (GetType() == typeof(CK3)) return this; var pk = new CK3(); TransferPropertiesWithReflection(this, pk); pk.setStats(getStats(PersonalTable.RS[pk.Species])); return pk; }