ソースを参照

Merge slots from https://github.com/Daniel-dev-s/flipperzero-slots

# Conflicts:
#	slots/slotmachine.c
Willy-JL 1 年間 前
コミット
21784a0709
1 ファイル変更7 行追加1 行削除
  1. 7 1
      slots/slotmachine.c

+ 7 - 1
slots/slotmachine.c

@@ -89,10 +89,16 @@ void game_results(SlotMachineApp* app) {
     }
 
     if(total > 0) {
-        app->money += total;
+        app->money += total; // Add winnings to the player's money
         app->winamount = total;
         app->winview = true;
 
+        // Add the bet amount back to the player's money
+        app->money += app->bet;
+
+        // Reset the bet amount, uncomment me if you want to do this
+        //app->bet = 0;
+
         if(total > highscore.highscore) {
             highscore.highscore = total;
             highscores_save();