From 267141749d681ed901e98e69e6bcc3c8f7da84c9 Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Sat, 13 Oct 2012 16:47:29 -0600 Subject: [PATCH] Chronotank charge pips down from 5->2, pips are blue and jump radius is blue --- OpenRA.Mods.RA/ChronoshiftDeploy.cs | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/OpenRA.Mods.RA/ChronoshiftDeploy.cs b/OpenRA.Mods.RA/ChronoshiftDeploy.cs index f3c9d72a3b..4575d0ae68 100644 --- a/OpenRA.Mods.RA/ChronoshiftDeploy.cs +++ b/OpenRA.Mods.RA/ChronoshiftDeploy.cs @@ -74,10 +74,10 @@ namespace OpenRA.Mods.RA return (order.OrderString == "ChronoshiftDeploy" && chargeTick <= 0) ? "Move" : null; } - // Display 5 pips indicating the current charge status + // Display 2 pips indicating the current charge status public IEnumerable GetPips(Actor self) { - const int numPips = 5; + const int numPips = 2; for (int i = 0; i < numPips; i++) { if ((1 - chargeTick * 1.0f / (25 * Info.ChargeTime)) * numPips < i + 1) @@ -86,20 +86,7 @@ namespace OpenRA.Mods.RA continue; } - switch (i) - { - case 0: - case 1: - yield return PipType.Red; - break; - case 2: - case 3: - yield return PipType.Yellow; - break; - case 4: - yield return PipType.Green; - break; - } + yield return PipType.Blue; } } @@ -155,7 +142,7 @@ namespace OpenRA.Mods.RA public void RenderBeforeWorld(WorldRenderer wr, World world) { wr.DrawRangeCircle( - Color.FromArgb(128, Color.Magenta), + Color.FromArgb(128, Color.DeepSkyBlue), self.CenterLocation.ToFloat2(), (int)self.Trait().Info.JumpDistance); } }