From d296465b0422581620cabf0b34b41b8a2933d38d Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 13 Jul 2025 19:56:31 +0200 Subject: [PATCH] Updated point reduction --- lib/data/game_session.dart | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/data/game_session.dart b/lib/data/game_session.dart index 36c4c4e..d40e105 100644 --- a/lib/data/game_session.dart +++ b/lib/data/game_session.dart @@ -282,8 +282,8 @@ class GameSession extends ChangeNotifier { for (int i = 0; i < players.length; i++) { if (playerScores[i] == pointLimit) { print('${players[i]} hat genau 100 Punkte erreicht und bekommt ' - 'deswegen 50 Punkte abgezogen'); - roundList[roundNumber - 1].scoreUpdates[i] -= 50; + 'deswegen ${(pointLimit / 2).round()} Punkte abgezogen'); + roundList[roundNumber - 1].scoreUpdates[i] -= (pointLimit / 2).round(); } } _sumPoints(); diff --git a/pubspec.yaml b/pubspec.yaml index da2c087..7946bbb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.4.4+485 +version: 0.4.4+486 environment: sdk: ^3.5.4