浏览代码

Final version. Open Beta Test

Tigran 4 年之前
父节点
当前提交
9425f85cd1

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

@@ -237,7 +237,7 @@ namespace MafiaTelegramBot.Game.GameRooms
                         mafiaNotAgree = allMafiaVotes[0].CurrentRole.MafiaTargetId switch
                         {
                             -1 => strings.mafia_not_kill_message,
-                            -3 => strings.mafia_decided_not_kill,
+                            -4 => strings.mafia_decided_not_kill,
                             _ => "",
                         };
                     }

+ 1 - 1
MafiaTelegramBot/Game/Player.cs

@@ -374,7 +374,7 @@ namespace MafiaTelegramBot.Game
 
             string BuildString(List<long> list)
             {
-                var result = team.Aggregate("", (current, id) => current + (id + '|'));
+                var result = list.Aggregate("", (current, id) => current + (id + '|'));
                 return result.Remove(result.Length - 1);
             }
         }

+ 2 - 2
MafiaTelegramBot/Resources/Constants.cs

@@ -5,7 +5,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;
@@ -23,7 +23,7 @@ namespace MafiaTelegramBot.Resources
         public const int NIGHT_ACTION_INTERVAL = 60 * 1000;
         public const int DEFENCE_INTERVAL = 90 * 1000;
         public const int SPEAK_INTERVAL = 60 * 1000;
-        public const int DISCUSSION_INTERVAL = 1*1000; //60 * 1000;
+        public const int DISCUSSION_INTERVAL = 60 * 1000;
 
         public const int ROOM_CODE_LENGTH = 6;
     }