remove usage of extern for joker_registry. Add array size macro to util.h

This commit is contained in:
theturtlemafia
2025-07-28 14:24:33 -04:00
parent 5c58b092d7
commit ed1204db74
5 changed files with 24 additions and 8 deletions
+1 -1
View File
@@ -1825,7 +1825,7 @@ static void game_shop_create_items(JokerObject *shop_jokers[], bool first_time)
joker_object_destroy(&shop_jokers[i]); // Destroy the joker object if it exists
}
u8 joker_id = random() % joker_registry_size;
u8 joker_id = random() % get_joker_registry_size();
shop_jokers[i] = joker_object_new(joker_new(joker_id));
shop_jokers[i]->sprite_object->x = int2fx(120 + i * 32);