Merge pull request #64 from theturtlemafia/ttm/joker-struct-refactor

Refactor jokers to use struct and function pointer for joker effects and added Lusty, Wrathful, and Gluttonous jokers
This commit is contained in:
MeirGavish
2025-07-29 00:56:04 +03:00
committed by GitHub
5 changed files with 75 additions and 31 deletions
+1 -1
View File
@@ -1830,7 +1830,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() % MAX_JOKERS;
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);