Tigran 4 years ago
parent
commit
26674574a3

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

@@ -1,4 +1,3 @@
-using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Threading;

+ 1 - 5
MafiaTelegramBot/Models/Inlines/ChangeRolesQuery.cs

@@ -19,11 +19,7 @@ namespace MafiaTelegramBot.Models.Inlines
             if(room.CustomRoomSettings.Count == 0) await room.InitSettings();
             var message = $"{strings.current_enabled_roles}";
             foreach (var (role, count) in room.CustomRoomSettings)
-            {
-                if (role is Roles.Mafia) message += $"\n| {roles.Mafia} ({count}) |";
-                if (role is Roles.Villager) message += $"\n| {roles.Villager} ({count}) |";
-                else message += $"\n| {roles.ResourceManager.GetString(role.ToString())} ({count}) |";
-            }
+                message += $"\n| {roles.ResourceManager.GetString(role.ToString())} ({count}) |";
             return await Bot.SendWithMarkdown2(ChatId, message, Keyboard.ChangeRolesKeyboard(UserId, roomKey, room));
         }
     }