Merge pull request #76 from cellos51/move_shop_price_down

Moved the price of shop items below the item so it is not obstructed when the card is raised on highlight
This commit is contained in:
MeirGavish
2025-08-03 16:10:20 +03:00
committed by GitHub
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1832,7 +1832,7 @@ static void game_shop_create_items(JokerObject *shop_jokers[], bool first_time)
shop_jokers[i]->sprite_object->ty = int2fx(71);
int x = fx2int(shop_jokers[i]->sprite_object->tx) + TILE_SIZE - (get_digits_even(shop_jokers[i]->joker->value) - 1) * TILE_SIZE;
int y = fx2int(shop_jokers[i]->sprite_object->ty);
int y = fx2int(shop_jokers[i]->sprite_object->ty) + CARD_SPRITE_SIZE + TILE_SIZE;
tte_printf("#{P:%d,%d; cx:0xC000}$%d", x, y, shop_jokers[i]->joker->value);
if (first_time == false)