Replace "Debug" prefix with "Battlefield Control" for win/loss messages.
This commit is contained in:
@@ -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, () =>
|
||||
{
|
||||
|
||||
@@ -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, () =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user