Tigran 4 роки тому
батько
коміт
4da81e3e92

+ 3 - 3
MafiaTelegramBot/Game/GameRooms/ExtendedGameRoom.cs

@@ -63,13 +63,13 @@ namespace MafiaTelegramBot.Game.GameRooms
             [Roles.Mafia] = new List<Player>(),
             [Roles.Don] = new List<Player>(),
             [Roles.Dame] = new List<Player>(),
+            [Roles.Bodyguard] = new List<Player>(),
+            [Roles.Doctor] = new List<Player>(),
+            [Roles.Necromancer] = new List<Player>(),
             [Roles.Cop] = new List<Player>(),
             [Roles.Journalist] = new List<Player>(),
             [Roles.Detective] = new List<Player>(),
             [Roles.Lawyer] = new List<Player>(),
-            [Roles.Bodyguard] = new List<Player>(),
-            [Roles.Doctor] = new List<Player>(),
-            [Roles.Necromancer] = new List<Player>(),
             [Roles.Werewolf] = new List<Player>(),
             [Roles.Parasite] = new List<Player>(),
         };

+ 0 - 1
MafiaTelegramBot/Game/GameRooms/GameRoom.Role.cs

@@ -167,7 +167,6 @@ namespace MafiaTelegramBot.Game.GameRooms
                     if (!Room.VoteKillList.ContainsKey(Player.Id) && Room.Players.ContainsKey(Player.Id))
                     {
                         var players = targets.Where(p => Room.Players.ContainsKey(p.Id)).ToArray();
-                        players = new Player[0]; //TODO skipping for tests
                         if(players.Length == 0) await Room.PlayersCh.EditTo(Player.Id, message.MessageId, strings.nothing_to_choose);
                         else
                         {

+ 1 - 1
MafiaTelegramBot/Game/GameRooms/NormalGameRoom.cs

@@ -14,9 +14,9 @@ namespace MafiaTelegramBot.Game.GameRooms
             [Roles.Villager] = new List<Player>(),
             //Active roles
             [Roles.Mafia] = new List<Player>(),
+            [Roles.Doctor] = new List<Player>(),
             [Roles.Don] = new List<Player>(),
             [Roles.Cop] = new List<Player>(),
-            [Roles.Doctor] = new List<Player>(),
         };
 
         protected override async Task<ResultCode> ReadSettings()

+ 1 - 1
MafiaTelegramBot/Resources/Constants.cs

@@ -2,7 +2,7 @@ namespace MafiaTelegramBot.Resources
 {
     public static class Constants
     {
-        public const int PLAYER_LIMITS_MIN = 1;
+        public const int PLAYER_LIMITS_MIN = 6;
         public const int PLAYER_DISABLE_TIMER = 3;
         public const int MINUTES_UNTIL_DISSOLVE = 10;
         public const int PLAYER_LIMITS_MAX = 16;