From cd29fb85687f38edc962699a652114f847cd3584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20T=C3=A1losi?= Date: Sun, 29 Jan 2023 20:08:42 +0100 Subject: [PATCH] solitaire and blackjack now affect flippers level --- applications/plugins/blackjack/blackjack.c | 2 ++ applications/plugins/solitaire/solitaire.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/applications/plugins/blackjack/blackjack.c b/applications/plugins/blackjack/blackjack.c index bcc192f83..6f7cc9af8 100644 --- a/applications/plugins/blackjack/blackjack.c +++ b/applications/plugins/blackjack/blackjack.c @@ -278,6 +278,7 @@ void dealer_tick(GameState* game_state) { if(dealer_score >= DEALER_MAX) { if(dealer_score > 21 || dealer_score < player_score) { + DOLPHIN_DEED(DolphinDeedPluginGameWin); enqueue( &(game_state->queue_state), game_state, @@ -570,6 +571,7 @@ int32_t blackjack_app(void* p) { gui_add_view_port(gui, view_port, GuiLayerFullscreen); AppEvent event; + DOLPHIN_DEED(DolphinDeedPluginGameStart); for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 100); diff --git a/applications/plugins/solitaire/solitaire.c b/applications/plugins/solitaire/solitaire.c index e1fffbc8a..502e631f2 100644 --- a/applications/plugins/solitaire/solitaire.c +++ b/applications/plugins/solitaire/solitaire.c @@ -274,6 +274,7 @@ void tick(GameState* game_state, NotificationApp* notification) { if(game_state->state == GameStatePlay) { if(game_state->top_cards[0].character == 11 && game_state->top_cards[1].character == 11 && game_state->top_cards[2].character == 11 && game_state->top_cards[3].character == 11) { + DOLPHIN_DEED(DolphinDeedPluginGameWin); game_state->state = GameStateAnimate; return; } @@ -487,6 +488,8 @@ int32_t solitaire_app(void* p) { gui_add_view_port(gui, view_port, GuiLayerFullscreen); AppEvent event; + DOLPHIN_DEED(DolphinDeedPluginGameStart); + for(bool processing = true; processing;) { FuriStatus event_status = furi_message_queue_get(event_queue, &event, 150); GameState* localstate = (GameState*)acquire_mutex_block(&state_mutex);