Exemplo n.º 1
0
 public static void GeneralFiimDbUpdate(FiimPlayerEntry player, IFiimRating currentPlayer, bool redWin, bool blackWin)
 {
     currentPlayer.Games           += 1;
     currentPlayer.ScoreMain       += player.ScoreMain;
     currentPlayer.ScoreAdditional += player.ScoreAdditional;
     currentPlayer.Rating           = (currentPlayer.ScoreMain + currentPlayer.ScoreAdditional) / currentPlayer.Games * 100;
     if (player.IsRedTeam() && redWin)
     {
         currentPlayer.RedWin += 1;
     }
     if (player.IsBlackTeam() && blackWin)
     {
         currentPlayer.BlackWin += 1;
     }
 }
Exemplo n.º 2
0
 public WeekRatingFiim(FiimPlayerEntry player, bool redWin, bool blackWin) : base(player, redWin, blackWin)
 {
 }
Exemplo n.º 3
0
 public static bool IsBlackTeam(this FiimPlayerEntry player)
 {
     return(player.Role == GetLocalized("Black") || player.Role == GetLocalized("Don"));
 }
Exemplo n.º 4
0
 public static bool IsRedTeam(this FiimPlayerEntry player)
 {
     return(player.Role == GetLocalized("Red") || player.Role == GetLocalized("Sheriff"));
 }