rename: D_80073267 → gSpeciesType1[], D_800732FF → gSpeciesType2[]

The two per-species tables accessed by func_80022A38 and
func_80022A60 respectively:

  gSpeciesType1[152]  - 1..151 + slot 0 (152 bytes)
  gSpeciesType2[192]  - 1..190 + slot 0 (192 bytes; wider range
                         supports Stadium's extended species IDs)

KNOWN_UNKNOWNS: the stored values do NOT match standard Gen-1
Type IDs (0..14). Bulbasaur (idx 1) stores 0x99, Ivysaur 0x09,
Charmander 0x08, etc. Stadium uses an opaque u8 encoding that
needs deeper archaeology — could be extended-type IDs,
form IDs, sprite indices, or per-species metadata not yet
understood. The names gSpeciesType1/2 reflect the function
context (used in stat calc by CalculateStatValue) but the
encoding itself is unverified.

Still matching: md5 ed1378bc… (verified by `make`)
This commit is contained in:
csaldiasdev 2026-07-05 21:52:26 -04:00
parent bbfff1f6d8
commit a8d9782d64

View File

@ -21,8 +21,8 @@ extern u8 D_800ACA74;
extern u8 D_800ACA75;
extern unk_D_800AC910_050 D_800ACA78;
extern u8 D_80073267[];
extern u8 D_800732FF[];
extern u8 gSpeciesType1[];
extern u8 gSpeciesType2[];
extern char D_800AC890[][0x20];
@ -118,7 +118,7 @@ u8 func_80022A38(s32 arg0) {
return 0;
}
return D_80073267[arg0];
return gSpeciesType1[arg0];
}
s32 func_80022A60(s32 arg0) {
@ -126,7 +126,7 @@ s32 func_80022A60(s32 arg0) {
return SPECIES_BLANK;
}
return D_800732FF[arg0];
return gSpeciesType2[arg0];
}
u8 func_80022A88(s32 arg0) {