rename WRange to WDist
This commit is contained in:
@@ -18,7 +18,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
class AttackLeapInfo : AttackFrontalInfo
|
||||
{
|
||||
[Desc("Leap speed (in units/tick).")]
|
||||
public readonly WRange Speed = new WRange(426);
|
||||
public readonly WDist Speed = new WDist(426);
|
||||
public readonly WAngle Angle = WAngle.FromDegrees(20);
|
||||
|
||||
public override object Create(ActorInitializer init) { return new AttackLeap(init.Self, this); }
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
|
||||
yield return new RangeCircleRenderable(
|
||||
self.CenterPosition,
|
||||
WRange.FromCells(self.Trait<PortableChrono>().Info.MaxDistance),
|
||||
WDist.FromCells(self.Trait<PortableChrono>().Info.MaxDistance),
|
||||
0,
|
||||
Color.FromArgb(128, Color.LawnGreen),
|
||||
Color.FromArgb(96, Color.Black));
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
yield return new RangeCircleRenderable(
|
||||
centerPosition,
|
||||
WRange.FromCells(jamsMissiles.Range),
|
||||
WDist.FromCells(jamsMissiles.Range),
|
||||
0,
|
||||
Color.FromArgb(128, Color.Red),
|
||||
Color.FromArgb(96, Color.Black));
|
||||
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
yield return new RangeCircleRenderable(
|
||||
centerPosition,
|
||||
WRange.FromCells(jamsRadar.Range),
|
||||
WDist.FromCells(jamsRadar.Range),
|
||||
0,
|
||||
Color.FromArgb(128, Color.Blue),
|
||||
Color.FromArgb(96, Color.Black));
|
||||
@@ -69,7 +69,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
yield return new RangeCircleRenderable(
|
||||
self.CenterPosition,
|
||||
WRange.FromCells(jamsMissiles.Range),
|
||||
WDist.FromCells(jamsMissiles.Range),
|
||||
0,
|
||||
Color.FromArgb(128, Color.Red),
|
||||
Color.FromArgb(96, Color.Black));
|
||||
@@ -80,7 +80,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
yield return new RangeCircleRenderable(
|
||||
self.CenterPosition,
|
||||
WRange.FromCells(jamsRadar.Range),
|
||||
WDist.FromCells(jamsRadar.Range),
|
||||
0,
|
||||
Color.FromArgb(128, Color.Blue),
|
||||
Color.FromArgb(96, Color.Black));
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public readonly int QuantizedFacings = 32;
|
||||
|
||||
[Desc("Spawn and remove the plane this far outside the map.")]
|
||||
public readonly WRange Cordon = new WRange(5120);
|
||||
public readonly WDist Cordon = new WDist(5120);
|
||||
|
||||
[ActorReference]
|
||||
[Desc("Troops to be delivered. They will be distributed between the planes if SquadSize > 1.")]
|
||||
@@ -47,7 +47,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
public readonly int CameraRemoveDelay = 85;
|
||||
|
||||
[Desc("Weapon range offset to apply during the beacon clock calculation.")]
|
||||
public readonly WRange BeaconDistanceOffset = WRange.FromCells(4);
|
||||
public readonly WDist BeaconDistanceOffset = WDist.FromCells(4);
|
||||
|
||||
public override object Create(ActorInitializer init) { return new ParatroopersPower(init.Self, this); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user