Nu hanteras även den som vinner ett game
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user