Chronotank charge pips down from 5->2, pips are blue and jump radius is blue
This commit is contained in:
@@ -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<PipType> 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<ChronoshiftDeploy>().Info.JumpDistance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user