private void UpdateChecks() { PIDEC.Verify(this); Nickname.Verify(this); Language.Verify(this); Trainer.Verify(this); IndividualValues.Verify(this); EffortValues.Verify(this); Level.Verify(this); Ribbon.Verify(this); Ability.Verify(this); Ball.Verify(this); Form.Verify(this); Misc.Verify(this); Gender.Verify(this); Item.Verify(this); if (pkm.Format <= 6 && pkm.Format >= 4) { EncounterType.Verify(this); // Gen 6->7 transfer deletes encounter type data } if (pkm.Format < 6) { return; } Memory.Verify(this); Medal.Verify(this); ConsoleRegion.Verify(this); if (pkm.Format >= 7) { HyperTraining.Verify(this); Misc.VerifyVersionEvolution(this); } }
private void ParsePK1() { SetTradebackStatusInitial(); UpdateInfo(); SetTradebackStatusPost(); Nickname.Verify(this); Level.Verify(this); Level.VerifyG1(this); Trainer.VerifyOTG1(this); Misc.VerifyMiscG1(this); if (pkm.Format == 2) { Item.Verify(this); } }
private void ParsePK1() { pkm.TradebackStatus = GBRestrictions.GetTradebackStatusInitial(pkm); UpdateInfo(); if (pkm.TradebackStatus == TradebackType.Any && Info.Generation != pkm.Format) { pkm.TradebackStatus = TradebackType.WasTradeback; // Example: GSC Pokemon with only possible encounters in RBY, like the legendary birds } Nickname.Verify(this); Level.Verify(this); Level.VerifyG1(this); Trainer.VerifyOTG1(this); Misc.VerifyMiscG1(this); if (pkm.Format == 2) { Item.Verify(this); } }