@@ -40,6 +40,8 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
4040 u_int scaleDown ;
4141 u_int txtColor ;
4242 int bitIndex ;
43+
44+ unsigned char prize ;
4345
4446 bitIndex = -1 ;
4547 gGT = sdata -> gGT ;
@@ -92,9 +94,11 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
9294 lerpEndX = lerpStartX + 0x10 ;
9395 lerpEndY = lerpStartY + 0x10 ;
9496 lerpFrames = FPS_DOUBLE (8 );
95-
97+
98+ prize = 0x4c ;
99+
96100 // If you have not unlocked this CTR Token
97- bitIndex = gGT -> levelID + 0x4C ;
101+ bitIndex = gGT -> levelID + prize ;
98102 * (int * )& letterPos [0 ] = * (int * )& hudCTR [0 ];
99103 if (CHECK_ADV_BIT (adv -> rewards , bitIndex ) == 0 )
100104 {
@@ -438,8 +442,10 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
438442 // If you are in boss mode
439443 if (gGT -> gameMode1 < 0 )
440444 {
445+ prize = 0x5e ;
446+
441447 // bitIndex of keys unlocked, and boss beaten
442- bitIndex = gGT -> bossID + 0x5e ;
448+ bitIndex = gGT -> bossID + prize ;
443449
444450 // If the number of keys you have is less than 4
445451 if (gGT -> bossID < 4 )
@@ -448,14 +454,14 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
448454 if (CHECK_ADV_BIT (adv -> rewards , bitIndex ) == 0 )
449455 {
450456 // Go to Podium after returning to Adventure Hub
451- gGT -> podiumRewardID = 99 ; // key
457+ gGT -> podiumRewardID = STATIC_KEY ; // key
452458
453459 // hot air skyway
454- if (gGT -> levelID == 7 )
460+ if (gGT -> levelID == HOT_AIR_SKYWAY )
455461 {
456462 // If you just beat Pinstripe
457463 // Load gemstone valley
458- levSpawn = 0x19 ;
464+ levSpawn = GEM_STONE_VALLEY ;
459465 }
460466 }
461467 }
@@ -465,7 +471,7 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
465471 {
466472 // Always go to podium after oxide,
467473 // with no key (0x38 = empty)
468- gGT -> podiumRewardID = 0x38 ;
474+ gGT -> podiumRewardID = STATIC_BIG1 ;
469475
470476 // assume oxide beaten 1st time
471477 adv -> rewards [3 ] |= 0x80004 ;
@@ -488,14 +494,15 @@ void DECOMP_AA_EndEvent_DrawMenu(void)
488494
489495 // if trophy is not won,
490496 // Dingo Bingo needs to win trophy and token in the same race
491- bitIndex = gGT -> levelID + 6 ;
497+ prize = 6 ;
498+ bitIndex = gGT -> levelID + prize ;
492499 if (CHECK_ADV_BIT (adv -> rewards , bitIndex ) == 0 )
493500 {
494501 // unlock tropy
495502 UNLOCK_ADV_BIT (adv -> rewards , bitIndex );
496503
497504 // go to podium with trophy
498- gGT -> podiumRewardID = 0x62 ;
505+ gGT -> podiumRewardID = STATIC_TROPHY ;
499506 }
500507
501508 MainRaceTrack_RequestLoad (levSpawn );
0 commit comments