Ver Fonte

bug fix

Tigran há 4 anos atrás
pai
commit
4b366de531

+ 2 - 2
MafiaTelegramBot/Game/GameRooms/GameRoom.GameProcess.cs

@@ -547,10 +547,10 @@ namespace MafiaTelegramBot.Game.GameRooms
                             if (player.CurrentRole.IsWon().Result != "")
                             {
                                 player.HookerRoleAchievementEvent();
-                                player.AddRankPoints();
+                                if (IsRanking) player.AddRankPoints();
                                 UpdateWins(player);
                             }
-                            else player.SubtractRankPoints();
+                            else if (IsRanking) player.SubtractRankPoints();
                             player.ResetParasiteProgress();
                         }
 

+ 1 - 2
MafiaTelegramBot/Game/Player.cs

@@ -348,8 +348,7 @@ namespace MafiaTelegramBot.Game
                 <100 => 'a',
                 >=100 and <300 => 'b',
                 >=300 and <500 => 'c',
-                >500 => 'd',
-                _ => '0'
+                >=500 => 'd',
             };
         }