Nu hanteras även den som vinner ett game

This commit is contained in:
2025-10-06 17:49:20 +02:00
parent fa6c1e125f
commit c00819bec6
5 changed files with 13 additions and 3 deletions

View File

@ -107,6 +107,8 @@ public class RoundRunningViewModel : ViewModelBase
}
public ObservableCollection<RoundBuilderElement> Get()
{
@ -246,6 +248,11 @@ public class RoundRunningViewModel : ViewModelBase
{
player.Values.Add(element.GameRegPoints.ToString());
player.PlayerPoints += element.GameRegPoints;
if (player.PlayerPoints > 10000)
{
var winner = RoundElements.FirstOrDefault(e => e.ParticipantId == player.PlayerId);
winner.Status = GamePointStatus.Winning;
}
}
//oldPart = element.ParticipantId;