Replace "Debug" prefix with "Battlefield Control" for win/loss messages.

This commit is contained in:
Paul Chote
2017-01-29 16:43:36 +00:00
parent fe7736cee8
commit 7a1d1092bd
2 changed files with 6 additions and 4 deletions

View File

@@ -9,6 +9,7 @@
*/
#endregion
using System.Drawing;
using System.Linq;
using OpenRA.Traits;
@@ -58,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits
public void OnPlayerLost(Player player)
{
Game.Debug("{0} is defeated.", player.PlayerName);
Game.AddChatLine(Color.White, "Battlefield Control", player.PlayerName + " is defeated.");
foreach (var a in player.World.Actors.Where(a => a.Owner == player))
a.Kill(a);
@@ -72,7 +73,7 @@ namespace OpenRA.Mods.Common.Traits
public void OnPlayerWon(Player player)
{
Game.Debug("{0} is victorious.", player.PlayerName);
Game.AddChatLine(Color.White, "Battlefield Control", player.PlayerName + " is victorious.");
Game.RunAfterDelay(info.NotificationDelay, () =>
{

View File

@@ -10,6 +10,7 @@
#endregion
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using OpenRA.Traits;
@@ -103,7 +104,7 @@ namespace OpenRA.Mods.Common.Traits
public void OnPlayerLost(Player player)
{
Game.Debug("{0} is defeated.", player.PlayerName);
Game.AddChatLine(Color.White, "Battlefield Control", player.PlayerName + " is defeated.");
foreach (var a in player.World.Actors.Where(a => a.Owner == player))
a.Kill(a);
@@ -117,7 +118,7 @@ namespace OpenRA.Mods.Common.Traits
public void OnPlayerWon(Player player)
{
Game.Debug("{0} is victorious.", player.PlayerName);
Game.AddChatLine(Color.White, "Battlefield Control", player.PlayerName + " is victorious.");
Game.RunAfterDelay(info.NotificationDelay, () =>
{