|
@@ -12,6 +12,9 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
|
|
|
private int _color = 1;
|
|
|
|
|
|
+ public int CountBlack = 0;
|
|
|
+ public int CountRed = 0;
|
|
|
+
|
|
|
public override int ColorRole
|
|
|
{
|
|
|
get => _color;
|
|
@@ -43,6 +46,8 @@ namespace MafiaTelegramBot.Game.GameRoles
|
|
|
: Room.Players[NightTargetId].GetRole() is Roles.Werewolf && ((WerewolfRole) Room.Players[NightTargetId].CurrentRole).IsMafia
|
|
|
? roles.Mafia
|
|
|
: roles.Villager;
|
|
|
+ if (Room.Players[NightTargetId].CurrentRole.ColorRole == 1) CountRed++;
|
|
|
+ if (Room.Players[NightTargetId].CurrentRole.ColorRole == 2) CountBlack++;
|
|
|
if (KnownRoles.ContainsKey(NightTargetId)) KnownRoles[NightTargetId] = role;
|
|
|
else KnownRoles.Add(Room.Players[NightTargetId].Id, role);
|
|
|
await Room.PlayersCh.EditTo(Player.Id, MessageId,
|