From a8d9782d64fdc792e69bd57c74138bc21df89cf3 Mon Sep 17 00:00:00 2001 From: csaldiasdev Date: Sun, 5 Jul 2026 21:52:26 -0400 Subject: [PATCH] =?UTF-8?q?rename:=20D=5F80073267=20=E2=86=92=20gSpeciesTy?= =?UTF-8?q?pe1[],=20D=5F800732FF=20=E2=86=92=20gSpeciesType2[]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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`) --- src/232C0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/232C0.c b/src/232C0.c index 62a86ca..353c0d4 100644 --- a/src/232C0.c +++ b/src/232C0.c @@ -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) {