public bool GetSizeData(DexSizeType group, int species, int form, out int height, out int weight) { height = weight = DefaultEntryValue; if (TryGetSizeEntryIndex(species, form, out var index)) { return(GetSizeData(group, index, out height, out weight)); } return(false); }
private static int GetDexSizeOffset(DexSizeType group, int index) => 0x3978 + (index * 6) + ((int)group * 0x45C); // blockofs + 0xF78 + ([186*6]*n) + x*6 private void SetSizeData(PB7 pkm, DexSizeType group) { var tree = EvolutionTree.GetEvolutionTree(pkm, 7); int species = pkm.Species; int form = pkm.AltForm; int height = pkm.HeightScalar; int weight = pkm.WeightScalar; // update for all species in potential lineage var allspec = tree.GetEvolutionsAndPreEvolutions(species, form); foreach (var s in allspec) { SetSizeData(group, s, form, height, weight); } }
private static int GetDexSizeOffset(DexSizeType group, int index) => 0x3978 + (index * 6) + ((int)group * 0x45C); // blockofs + 0xF78 + ([186*6]*n) + x*6