Restore vanilla pause red coin counter if there are only 8

This commit is contained in:
Agent X 2024-03-03 17:29:12 -05:00
parent a0a65e19bd
commit a32af25896
1 changed files with 8 additions and 0 deletions

View File

@ -2442,6 +2442,14 @@ static inline void red_coins_print_glyph(s16 *x, u8 glyph, u8 width) {
}
void render_pause_red_coins(void) {
if (gCurrentArea->numRedCoins == 8) {
u8 collected = gCurrentArea->numRedCoins - count_objects_with_behavior(bhvRedCoin);
for (s32 x = 0; x < collected; x++) {
print_animated_red_coin(GFX_DIMENSIONS_FROM_RIGHT_EDGE(30) - x * 20, 16);
}
return;
}
if (gCurrentArea->numRedCoins > 0) {
u8 collected = gCurrentArea->numRedCoins - count_objects_with_behavior(bhvRedCoin);
s16 x = gfx_dimensions_rect_from_left_edge(38);