Updated point reduction
This commit is contained in:
@@ -282,8 +282,8 @@ class GameSession extends ChangeNotifier {
|
|||||||
for (int i = 0; i < players.length; i++) {
|
for (int i = 0; i < players.length; i++) {
|
||||||
if (playerScores[i] == pointLimit) {
|
if (playerScores[i] == pointLimit) {
|
||||||
print('${players[i]} hat genau 100 Punkte erreicht und bekommt '
|
print('${players[i]} hat genau 100 Punkte erreicht und bekommt '
|
||||||
'deswegen 50 Punkte abgezogen');
|
'deswegen ${(pointLimit / 2).round()} Punkte abgezogen');
|
||||||
roundList[roundNumber - 1].scoreUpdates[i] -= 50;
|
roundList[roundNumber - 1].scoreUpdates[i] -= (pointLimit / 2).round();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_sumPoints();
|
_sumPoints();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.4.4+485
|
version: 0.4.4+486
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user