Reduce duplication of "Battlefield Control" chat line label
This commit is contained in:
committed by
Paul Chote
parent
3e2022a3dd
commit
1dd1786469
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (info.SuppressNotifications)
|
||||
return;
|
||||
|
||||
Game.AddSystemLine("Battlefield Control", player.PlayerName + " is defeated.");
|
||||
Game.AddSystemLine(player.PlayerName + " is defeated.");
|
||||
Game.RunAfterDelay(info.NotificationDelay, () =>
|
||||
{
|
||||
if (Game.IsCurrentWorld(player.World) && player == player.World.LocalPlayer)
|
||||
@@ -113,7 +113,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (info.SuppressNotifications)
|
||||
return;
|
||||
|
||||
Game.AddSystemLine("Battlefield Control", player.PlayerName + " is victorious.");
|
||||
Game.AddSystemLine(player.PlayerName + " is victorious.");
|
||||
Game.RunAfterDelay(info.NotificationDelay, () =>
|
||||
{
|
||||
if (Game.IsCurrentWorld(player.World) && player == player.World.LocalPlayer)
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (info.SuppressNotifications)
|
||||
return;
|
||||
|
||||
Game.AddSystemLine("Battlefield Control", player.PlayerName + " is defeated.");
|
||||
Game.AddSystemLine(player.PlayerName + " is defeated.");
|
||||
Game.RunAfterDelay(info.NotificationDelay, () =>
|
||||
{
|
||||
if (Game.IsCurrentWorld(player.World) && player == player.World.LocalPlayer)
|
||||
@@ -154,7 +154,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (info.SuppressNotifications)
|
||||
return;
|
||||
|
||||
Game.AddSystemLine("Battlefield Control", player.PlayerName + " is victorious.");
|
||||
Game.AddSystemLine(player.PlayerName + " is victorious.");
|
||||
Game.RunAfterDelay(info.NotificationDelay, () =>
|
||||
{
|
||||
if (Game.IsCurrentWorld(player.World) && player == player.World.LocalPlayer)
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
if (ticksRemaining == m * 60 * ticksPerSecond)
|
||||
{
|
||||
Game.AddSystemLine("Battlefield Control", Notification.F(m, m > 1 ? "s" : null));
|
||||
Game.AddSystemLine(Notification.F(m, m > 1 ? "s" : null));
|
||||
|
||||
var faction = self.World.LocalPlayer == null ? null : self.World.LocalPlayer.Faction.InternalName;
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, self.World.LocalPlayer, "Speech", info.TimeLimitWarnings[m], faction);
|
||||
@@ -172,7 +172,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
countdownLabel.GetText = () => null;
|
||||
|
||||
if (!info.SkipTimerExpiredNotification)
|
||||
Game.AddSystemLine("Battlefield Control", "Time limit has expired.");
|
||||
Game.AddSystemLine("Time limit has expired.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user