private void Initialize() { Personal = PersonalTable.SM; HeldItems = Legal.HeldItems_SM; Items = new MyItem7SM(this, Bag); Zukan = new Zukan7(this, PokeDex, PokeDexLanguageFlags); Records = new Record6(this, Record, Core.Records.MaxType_SM); }
public IEnumerable <int> GetAllFormEntries(int spec) { var fc = Parent.Personal[spec].FormeCount; for (int j = 1; j < fc; j++) { int start = j; int end = j; if (Zukan7.SanitizeFormsToIterate(spec, out int s, out int n, j, Parent.USUM)) { start = s; end = n; } start = Math.Max(1, start); for (int f = start; f <= end; f++) { int x = GetDexFormIndex(spec, fc, f); if (x >= 0) { yield return(x); } } } }