From 9d6c9e316b4af39fc87560e31c4c4d91ce01db15 Mon Sep 17 00:00:00 2001 From: deurstann <tristan.derouet@gmail.com> Date: Sat, 13 Nov 2021 11:04:52 +0100 Subject: [PATCH] The mysterious commit --- mainwindow.cpp | 3 ++- mainwindow.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 8a58333..3f936ab 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -234,7 +234,8 @@ void MainWindow::on_SellButton_clicked() else{ chance = QRandomGenerator::global()->bounded(0,2); if(chance==1){ - msgBox.setText("Le marchand a échangé les BakaCoins de Bakachan contre des NFT Bakayen, elle ne sait pas trop ce que c'est mais c'est sûrement des supers bakayens.\nVous possédez maintenant " + QString::number(bakaCoin) + " NFT Bakayen!"); + bakayen+=bakaCoin; + msgBox.setText("Le marchand a échangé les BakaCoins de Bakachan contre des NFT Bakayen, elle ne sait pas trop ce que c'est mais c'est sûrement des supers bakayens.\nVous possédez maintenant " + QString::number(bakayen) + " NFT Bakayen!"); } else{ msgBox.setText("Oh non! Un méchant barman a volé tous les Bakacoins de Bakachan. Il ne lui reste plus qu'à retourner à la mine. :("); diff --git a/mainwindow.h b/mainwindow.h index bf387bb..39d3a7f 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -44,6 +44,7 @@ private: int monsterSize; int damage; int bakaCoin=0; + int bakayen=0; QPixmap mine_1_pic; QPixmap mine_2_pic; QPixmap mine_3_pic; -- GitLab