Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Werewolf for Telegram/Werewolf Node/Werewolf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ private void SendPlayerList(bool joining = false)
.Aggregate("",
(current, p) =>
current +
p.GetName(dead: true) + ": " + (p.Fled ? GetLocaleString("RanAway") : GetLocaleString("Dead")) + (DbGroup.HasFlag(GroupConfig.ShowRolesDeath) ? " - " + GetDescription(p.PlayerRole) + (p.InLove ? loveEmoji : "") : "") + "\n");
p.GetName(dead: true) + ": " + (p.DiedByFleeOrIdle ? (p.Fled ? GetLocaleString("RanAway") : GetLocaleString("Idle")) : GetLocaleString("Dead")) + (DbGroup.HasFlag(GroupConfig.ShowRolesDeath) ? " - " + GetDescription(p.PlayerRole) + (p.InLove ? loveEmoji : "") : "") + "\n");

msg += players.Where(x => !x.IsDead).OrderBy(x => Program.R.Next())
.Aggregate("",
Expand All @@ -1396,7 +1396,7 @@ private void SendPlayerList(bool joining = false)
.Aggregate("",
(current, p) =>
current +
($"{p.GetName(dead: p.IsDead)}: {(p.IsDead ? ((p.Fled ? GetLocaleString("RanAway") : GetLocaleString("Dead")) + (DbGroup.HasFlag(GroupConfig.ShowRolesDeath) ? " - " + GetDescription(p.PlayerRole) + (p.InLove ? "❤️" : "") : "")) : GetLocaleString("Alive"))}\n"));
($"{p.GetName(dead: p.IsDead)}: {(p.IsDead ? ((p.DiedByFleeOrIdle ? (p.Fled ? GetLocaleString("RanAway") : GetLocaleString("Idle")) : GetLocaleString("Dead")) + (DbGroup.HasFlag(GroupConfig.ShowRolesDeath) ? " - " + GetDescription(p.PlayerRole) + (p.InLove ? "❤️" : "") : "")) : GetLocaleString("Alive"))}\n"));
//{(p.HasUsedAbility & !p.IsDead && new[] { IRole.Prince, IRole.Mayor, IRole.Gunner, IRole.Blacksmith }.Contains(p.PlayerRole) ? " - " + GetDescription(p.PlayerRole) : "")} //OLD CODE SHOWING KNOWN ROLES
}
}
Expand Down Expand Up @@ -4845,7 +4845,7 @@ private bool DoGameEnd(ITeam team)
msg = $"{GetLocaleString("PlayersAlive")}: {Players.Count(x => !x.IsDead)} / {Players.Count}\n" + Players.OrderBy(x => x.TimeDied).Aggregate(msg, (current, p) => current + $"\n{p.GetName()}");
break;
case "All":
msg = $"{GetLocaleString("PlayersAlive")}: {Players.Count(x => !x.IsDead)} / {Players.Count}\n" + Players.OrderBy(x => x.TimeDied).Aggregate("", (current, p) => current + ($"{p.GetName()}: {(p.IsDead ? (p.Fled ? GetLocaleString("RanAway") : GetLocaleString("Dead")) : GetLocaleString("Alive")) + " - " + GetDescription(p.PlayerRole) + (p.InLove ? "❤️" : "")} {(p.Won ? GetLocaleString("Won") : GetLocaleString("Lost"))}\n"));
msg = $"{GetLocaleString("PlayersAlive")}: {Players.Count(x => !x.IsDead)} / {Players.Count}\n" + Players.OrderBy(x => x.TimeDied).Aggregate("", (current, p) => current + ($"{p.GetName()}: {(p.IsDead ? (p.DiedByFleeOrIdle ? (p.Fled ? GetLocaleString("RanAway") : GetLocaleString("Idle")) : GetLocaleString("Dead")) : GetLocaleString("Alive")) + " - " + GetDescription(p.PlayerRole) + (p.InLove ? "❤️" : "")} {(p.Won ? GetLocaleString("Won") : GetLocaleString("Lost"))}\n"));
break;
default:
msg = GetLocaleString("RemainingPlayersEnd") + Environment.NewLine;
Expand Down